ResetPasswordCodeRequiredState class
Base class for the action requried state in an authentication flow.
- Extends
-
ResetPasswordState<ResetPasswordCodeRequiredStateParameters>
Methods
get |
Gets the sent code length. |
resend |
Resends another one-time passcode if the previous one hasn't been verified |
submit |
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
Promise<ResetPasswordResendCodeResult>
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
Promise<ResetPasswordSubmitCodeResult>
The result of the operation.