Skip to content

useLinkIdToken()

Use the hook useLinkIdToken to link a user account with the provider’s account using an id token

const { linkIdToken, isLoading, isSuccess, isError, error } = useLinkIdToken()
const handleFormSubmit = async (e) => {
e.preventDefault()
await linkIdToken({
provider: 'google',
idToken: '...',
nonce: '...'
})
}