mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-28 17:43:47 +00:00
fix: support OIDC mode in TelegramLinkWidget for account linking
TelegramLinkWidget used legacy widget only, ignoring OIDC config. Now queries widgetConfig from backend, supports OIDC popup flow with id_token, and falls back to bot_username from server config.
This commit is contained in:
@@ -248,10 +248,11 @@ export const authApi = {
|
||||
return response.data;
|
||||
},
|
||||
|
||||
// Link Telegram account (Mini App initData or Login Widget data)
|
||||
// Link Telegram account (Mini App initData, OIDC id_token, or Login Widget data)
|
||||
linkTelegram: async (
|
||||
data:
|
||||
| { init_data: string }
|
||||
| { id_token: string }
|
||||
| {
|
||||
id: number;
|
||||
first_name: string;
|
||||
|
||||
Reference in New Issue
Block a user