Edit

Share via


SignInSubmitCodeResult class

Extends

Constructors

SignInSubmitCodeResult(SignInSubmitCodeResultState, CustomAuthAccountData)

Inherited Properties

data
error
state

Methods

createWithError(unknown)

Creates a new instance of SignInSubmitCodeResult with error data.

isCompleted()

Checks if the result is in a completed state.

isFailed()

Checks if the result is in a failed state.

Constructor Details

SignInSubmitCodeResult(SignInSubmitCodeResultState, CustomAuthAccountData)

new SignInSubmitCodeResult(state: SignInSubmitCodeResultState, data?: CustomAuthAccountData)

Parameters

Inherited Property Details

data

data?: CustomAuthAccountData

Property Value

Inherited From AuthFlowResultBase.data

error

error?: SignInSubmitCodeError

Property Value

Inherited From AuthFlowResultBase.error

state

state: SignInSubmitCodeResultState

Property Value

Inherited From AuthFlowResultBase.state

Method Details

createWithError(unknown)

Creates a new instance of SignInSubmitCodeResult with error data.

static function createWithError(error: unknown): SignInSubmitCodeResult

Parameters

error

unknown

The error that occurred.

Returns

A new instance of SignInSubmitCodeResult with the error set.

isCompleted()

Checks if the result is in a completed state.

function isCompleted(): this

Returns

this

isFailed()

Checks if the result is in a failed state.

function isFailed(): this

Returns

this