function requestMultipleChoice(message, choices): unknown

in the create auth session flow, you might to need a multiple choice answer from the user, requestMultipleChoice prompts the user with the question and possible options and returns their selection.

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

Examples

// in auth-sessions/create.ts

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

const message = "What is your favorite color?";
const choices = ["Red", "Blue", "Green", "Yellow"];

const selectedChoice = yield requestMultipleChoice(message, choices);

console.log(selectedChoice);

Parameters

message: string

The message to display to the user.

choices: string[]

An array of choices to present to the user.

Returns

unknown