Edit

Share via


SignInResult class

Extends

Constructors

SignInResult(SignInResultState, CustomAuthAccountData)

Creates a new instance of SignInResultState.

Inherited Properties

data
error
state

Methods

createWithError(unknown)

Creates a new instance of SignInResult with an error.

isAuthMethodRegistrationRequired()

Checks if the result requires authentication method registration.

isCodeRequired()

Checks if the result is in a code required state.

isCompleted()

Checks if the result is in a completed state.

isFailed()

Checks if the result is in a failed state.

isPasswordRequired()

Checks if the result is in a password required state.

Constructor Details

SignInResult(SignInResultState, CustomAuthAccountData)

Creates a new instance of SignInResultState.

new SignInResult(state: SignInResultState, resultData?: CustomAuthAccountData)

Parameters

state
SignInResultState

The state of the result.

Inherited Property Details

data

data?: CustomAuthAccountData

Property Value

Inherited From AuthFlowResultBase.data

error

error?: SignInError

Property Value

Inherited From AuthFlowResultBase.error

state

state: SignInResultState

Property Value

Inherited From AuthFlowResultBase.state

Method Details

createWithError(unknown)

Creates a new instance of SignInResult with an error.

static function createWithError(error: unknown): SignInResult

Parameters

error

unknown

The error that occurred.

Returns

A new instance of SignInResult with the error set.

isAuthMethodRegistrationRequired()

Checks if the result requires authentication method registration.

function isAuthMethodRegistrationRequired(): this

Returns

this

isCodeRequired()

Checks if the result is in a code required state.

function isCodeRequired(): this

Returns

this

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

isPasswordRequired()

Checks if the result is in a password required state.

function isPasswordRequired(): this

Returns

this