mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-29 18:13:47 +00:00
fix: safe error handling and numeric client_id in OIDC login
- Replace unsafe `as` cast with runtime type guard - Pass client_id as Number() per Telegram OIDC spec - Update TypeScript type to string | number
This commit is contained in:
2
src/vite-env.d.ts
vendored
2
src/vite-env.d.ts
vendored
@@ -23,7 +23,7 @@ interface TelegramWebAppGlobal {
|
||||
interface TelegramLoginGlobal {
|
||||
init: (
|
||||
options: {
|
||||
client_id: string;
|
||||
client_id: string | number;
|
||||
request_access?: string[];
|
||||
lang?: string;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user