Skip to main content
function useLinkSms(): {
  linkSms: (phoneNumber: string) => Promise<{
     flowId: string;
     message: string;
  }>;
};
A hook for linking a SMS account to the current user.

Returns

{
  linkSms: (phoneNumber: string) => Promise<{
     flowId: string;
     message: string;
  }>;
}
An object containing the linkSms function.

linkSms()

linkSms: (phoneNumber: string) => Promise<{
  flowId: string;
  message: string;
}>;

Parameters

ParameterType
phoneNumberstring

Returns

Promise<{ flowId: string; message: string; }>