function requestOTP(message): unknown

Note: This function is currently in beta and may be subject to changes.

requestOTP help you to ask the user for an otp in the create auth-session flow.

Examples

// in auth-sessions/create.ts

import { requestOTP } from "@intuned/sdk/runtime"

const message = "please submit and OTP from your authenticator app";

const otp = yield requestOTP(message);

console.log(otp);

Parameters

message: string

The message to display to the user.

Returns

unknown