Skip to main content
function useLinkEmail(): {
  linkEmail: (email: string, options?: {
     idempotencyKey?: string;
   }) => Promise<{
     flowId: string;
     message: string;
  }>;
};
A hook for linking an email account to the current user.

Returns

An object containing the linkEmail function.
NameType
linkEmail()(email: string, options?: { idempotencyKey?: string; }) => Promise<{ flowId: string; message: string; }>