Skip to main content
function useLinkAuthFlow(): {
  back: () => void;
  direction?: "left" | "right";
  link: (method: AuthMethod) => void;
  linkSuccess: () => void;
};
A hook to get the link auth flow context value.

Returns

The link auth flow context value.
NameTypeDescription
back()() => voidA function to call when the back button is clicked.
direction?"left" | "right"The direction of the flow transition.
link()(method: AuthMethod) => voidA function to call when the user links an auth method.
linkSuccess()() => voidA function to call when an auth method is successfully linked.

See