Use nhost.auth.linkIdToken to link a user account with the provider’s account using an ID token

nhost.auth.linkIdToken({
  provider: 'google', // The provider name, e.g., 'google', 'apple', etc.
  idToken: '...', // The ID token issued by the provider.
  nonce: '...' // Optional: The nonce used during token generation.
})

Parameters


params required LinkIdTokenParams

PropertyTypeRequiredNotes
params.idTokenstring✔️
params.providerProvider✔️
params.noncestring