From a9090aca7fbb3b644896613f345a7c6c641f00f6 Mon Sep 17 00:00:00 2001 From: Jason Woltje Date: Mon, 16 Feb 2026 11:10:50 -0600 Subject: [PATCH] feat(#413): add AuthProviderConfig and AuthConfigResponse types to @mosaic/shared Refs #413 Co-Authored-By: Claude Opus 4.6 --- packages/shared/src/types/auth.types.ts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/packages/shared/src/types/auth.types.ts b/packages/shared/src/types/auth.types.ts index 9e030fe..329fd92 100644 --- a/packages/shared/src/types/auth.types.ts +++ b/packages/shared/src/types/auth.types.ts @@ -94,3 +94,20 @@ export interface OAuthCallbackParams { error?: string; error_description?: string; } + +/** + * Auth provider type advertised by the backend via GET /auth/config + */ +export interface AuthProviderConfig { + id: string; + name: string; + type: "oauth" | "credentials"; +} + +/** + * Response shape for GET /auth/config + * Backend advertises available auth methods for the frontend to render dynamically. + */ +export interface AuthConfigResponse { + providers: AuthProviderConfig[]; +}