mirror of
https://github.com/better-auth/better-auth.git
synced 2026-10-22 15:59:56 -05:00
fix(oauth): verify Twitch and Paybin ID tokens (#11884)
This commit is contained in:
@@ -89,3 +89,7 @@ Paybin returns user information in the ID token following OpenID Connect standar
|
||||
* `email` from `email` claim
|
||||
* `image` from `picture` claim
|
||||
* `emailVerified` from `email_verified` claim
|
||||
|
||||
### ID Token Validation
|
||||
|
||||
The built-in provider checks the ID token's signature, issuer, audience, and expiration using signing keys from `<issuer>/.well-known/jwks.json`. Custom `getUserInfo` overrides replace these checks.
|
||||
|
||||
@@ -56,3 +56,7 @@ description: Twitch provider setup and usage.
|
||||
</Callout>
|
||||
</Step>
|
||||
</Steps>
|
||||
|
||||
### ID Token Validation
|
||||
|
||||
The built-in provider checks the ID token's signature, issuer, audience, and expiration before mapping the profile. Custom `getUserInfo` overrides replace these checks.
|
||||
|
||||
Reference in New Issue
Block a user