Sign in with ID Token
Allows signing in with an OIDC ID token. The authentication provider used should be enabled and configured.
Parameters
OIDC ID token issued by the specified provider. The `iss` claim in the ID token must match the supplied provider. Some ID tokens contain an `at_hash` which require that you provide an `access_token` value to be accepted properly. If the token contains a `nonce` claim you must supply the nonce used to obtain the ID token.
Provider name or OIDC `iss` value identifying which provider should be used to verify the provided token. Supported names: `google`, `apple`, `azure`, `facebook`, `keycloak` (deprecated).
If the ID token contains an `at_hash` claim, then the hash of this value is compared to the value in the ID token.
If the ID token contains a `nonce` claim, then the hash of this value is compared to the value in the ID token.
Verification token received when the user completes the captcha on the site.
const { data, error } = await supabase.auth.signInWithIdToken({
provider: 'google',
token: 'your-id-token'
})