use axum::extract::State; use crate::error::AuthError; use crate::features::AuthService; use crate::features::oauth::types::OAuthProviderInfo; use export::data::AppResponseData; #[utoipa::path( get, path = "/auth/oauth/providers", tag = "auth", responses( (status = 200, description = "List of enabled OAuth providers.", body = AppResponseData>), ), )] pub(crate) async fn handler( State(svc): State, ) -> Result>, AuthError> { Ok(AppResponseData::ok(svc.list_oauth_providers())) }