Skip to main content
function useLinkGoogle(): {
  linkGoogle: () => Promise<void>;
  oauthState:   | null
     | OAuthFlowState;
};
A hook for linking a Google account to the current user. This is a convenience wrapper around useLinkOAuth for Google provider.

Returns

{
  linkGoogle: () => Promise<void>;
  oauthState:   | null
     | OAuthFlowState;
}
An object containing the linkGoogle function and oauthState.
NameType
linkGoogle()() => Promise<void>
oauthState| null | OAuthFlowState