ResetPasswordSubmitCodeResult class
- Extends
-
AuthFlowResultBase<ResetPasswordSubmitCodeResultState, ResetPasswordSubmitCodeError, void>
Constructors
Reset |
Creates a new instance of ResetPasswordSubmitCodeResult. |
Methods
create |
Creates a new instance of ResetPasswordSubmitCodeResult with an error. |
is |
Checks if the result is in a failed state. |
is |
Checks if the result is in a password required state. |
Constructor Details
ResetPasswordSubmitCodeResult(ResetPasswordSubmitCodeResultState)
Creates a new instance of ResetPasswordSubmitCodeResult.
new ResetPasswordSubmitCodeResult(state: ResetPasswordSubmitCodeResultState)
Parameters
The state of the result.
Inherited Property Details
data
data?: void
Property Value
void
Inherited From AuthFlowResultBase.data
error
error?: ResetPasswordSubmitCodeError
Property Value
Inherited From AuthFlowResultBase.error
state
state: ResetPasswordSubmitCodeResultState
Property Value
Inherited From AuthFlowResultBase.state
Method Details
createWithError(unknown)
Creates a new instance of ResetPasswordSubmitCodeResult with an error.
static function createWithError(error: unknown): ResetPasswordSubmitCodeResult
Parameters
- error
-
unknown
The error that occurred.
Returns
A new instance of ResetPasswordSubmitCodeResult with the error set.
isFailed()
Checks if the result is in a failed state.
function isFailed(): this
Returns
this
isPasswordRequired()
Checks if the result is in a password required state.
function isPasswordRequired(): this
Returns
this