export interface MfaLoginOptionsMembers extends BaseMembers { screen: ScreenMembersOnMfaLoginOptions; /** * Continues the login process with the selected MFA factor * @param payload The options containing the selected factor * @example * ```typescript * const mfaLoginOptions = new MfaLoginOptions(); * await mfaLoginOptions.enroll({ * action: 'push-notification' * }); * ``` */ enroll(payload: LoginEnrollOptions): Promise<void>; /** * Returns to the previous screen in the authentication flow * @param payload Optional custom options * @example * ```typescript * const mfaLoginOptions = new MfaLoginOptions(); * await mfaLoginOptions.returnToPrevious(); * ``` */ returnToPrevious(payload?: CustomOptions): Promise<void>; }
const mfaLoginOptions = new MfaLoginOptions(); await mfaLoginOptions.enroll({ action: 'push-notification' });
Show Parameters
const mfaLoginOptions = new MfaLoginOptions(); await mfaLoginOptions.returnToPrevious();
Was this page helpful?