Vibe Code (vcode.sh)
Vibe Code (vcode.sh)
@flxxxxddd OK that logging was worth every byte. Look at this: ``` Raw keys: [ 'error' ] ``` Telegram's token endpoint is returning `{ error: "..." }` — the token...
@flxxxxddd Found it. The `{"error":"invalid_client"}` from the token endpoint is the smoking gun. ## Root cause Telegram's `oauth.telegram.org` requires your bot to have an **RSA public key registered via BotFather's...
**Update after deeper research** — the situation is worse (better?) than I thought. ## Telegram's OIDC is real but not publicly documented The infrastructure is live: - `oauth.telegram.org/.well-known/openid-configuration` — full...
I think I see what's happening.... give me 20 min 🥲
v1.4.0 is the definitive fix for OIDC. Full flow confirmed working end-to-end: - **Proper `clientSecret`** — BotFather's Web Login provides a separate Client Secret (not the bot token). Added `oidc.clientSecret`...
Right. v1.4.0 is out. This is the one that actually works. Turns out Telegram published [actual OIDC docs](https://core.telegram.org/bots/telegram-login) at some point and nobody told me. The Client Secret is NOT...
Short answer: you should not trust this project just because I tell you to. Yes, at this point roughly 98% of the code is written by AI. I am not...
Thanks for the report — it led to v3.1.0, though possibly not in the way you expected. I ran your configuration (the two `additionalFields`, `mapOIDCProfileToUser` returning `user_id` and `phone_number`) on...
Thanks for pasting the whole config. That's what found it, and it's my bug. Your `mapOIDCProfileToUser` is `async`. The plugin called it without `await`, so it got a Promise instead...
Thanks again, @parmetra. Your follow-up with the full async mapper was what let me reproduce the actual problem. The fix is in 3.1.1 (#56): the plugin awaits the mapper, keeps...