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.

back()

back: () => void;
A function to call when the back button is clicked.

Returns

void

direction?

optional direction: "left" | "right";
The direction of the flow transition.
link: (method: AuthMethod) => void;
A function to call when the user links an auth method.

Parameters

ParameterType
methodAuthMethod

Returns

void

linkSuccess()

linkSuccess: () => void;
A function to call when an auth method is successfully linked.

Returns

void

See