Use the hook useLinkIdToken to link a user account with the provider’s account using an id token
useLinkIdToken
const { linkIdToken, isLoading, isSuccess, isError, error } = useLinkIdToken() const handleLinkIdToken = async () => { await linkIdToken({ provider: 'google', idToken: '...', nonce: '...' }) }
Was this page helpful?