Edit

Share via


ResetPasswordCodeRequiredState class

Base class for the action requried state in an authentication flow.

Extends

ResetPasswordState<ResetPasswordCodeRequiredStateParameters>

Constructors

ResetPasswordCodeRequiredState(ResetPasswordCodeRequiredStateParameters)

Methods

getCodeLength()

Gets the sent code length.

resendCode()

Resends another one-time passcode if the previous one hasn't been verified

submitCode(string)

Submits a one-time passcode that the customer user received in their email in order to continue password reset flow.

Constructor Details

ResetPasswordCodeRequiredState(ResetPasswordCodeRequiredStateParameters)

new ResetPasswordCodeRequiredState(stateParameters: ResetPasswordCodeRequiredStateParameters)

Parameters

stateParameters

ResetPasswordCodeRequiredStateParameters

Method Details

getCodeLength()

Gets the sent code length.

function getCodeLength(): number

Returns

number

The length of the code.

resendCode()

Resends another one-time passcode if the previous one hasn't been verified

function resendCode(): Promise<ResetPasswordResendCodeResult>

Returns

The result of the operation.

submitCode(string)

Submits a one-time passcode that the customer user received in their email in order to continue password reset flow.

function submitCode(code: string): Promise<ResetPasswordSubmitCodeResult>

Parameters

code

string

The code to submit.

Returns

The result of the operation.