linkIdToken()
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
Section titled “Parameters”params required LinkIdTokenParams
| Property | Type | Required | Notes |
|---|---|---|---|
| params.idToken | string | ✔️ | |
| params.provider | Provider | ✔️ | |
| params.nonce | string |