feat: TelegramLoginButton with OIDC popup + legacy widget fallback

- Add oidc_enabled/oidc_client_id to TelegramWidgetConfig interface and fallback
- Add loginTelegramOIDC API method for id_token auth
- Add loginWithTelegramOIDC to auth store
- Rewrite TelegramLoginButton: OIDC popup when enabled, legacy widget otherwise
- Extend Window.Telegram type with Login SDK in vite-env.d.ts
This commit is contained in:
Fringg
2026-03-07 02:37:12 +03:00
parent 2c65ca8a7f
commit 91f0e9e2fc
5 changed files with 142 additions and 7 deletions

View File

@@ -29,6 +29,8 @@ export interface TelegramWidgetConfig {
radius: number;
userpic: boolean;
request_access: boolean;
oidc_enabled: boolean;
oidc_client_id: string;
}
export interface AnalyticsCounters {
@@ -273,6 +275,8 @@ export const brandingApi = {
radius: 8,
userpic: true,
request_access: true,
oidc_enabled: false,
oidc_client_id: '',
};
}
},