Edit

Share via


AuthMethodRegistrationSubmitChallengeResult class

Result of submitting a challenge for authentication method registration.

Extends

Constructors

AuthMethodRegistrationSubmitChallengeResult(AuthMethodRegistrationSubmitChallengeResultState, CustomAuthAccountData)

Inherited Properties

data
error
state

Methods

createWithError(unknown)

Creates an AuthMethodRegistrationSubmitChallengeResult with an error.

isCompleted()

Checks if the result indicates that registration is completed.

isFailed()

Checks if the result is in a failed state.

Constructor Details

AuthMethodRegistrationSubmitChallengeResult(AuthMethodRegistrationSubmitChallengeResultState, CustomAuthAccountData)

new AuthMethodRegistrationSubmitChallengeResult(state: AuthMethodRegistrationSubmitChallengeResultState, data?: CustomAuthAccountData)

Parameters

Inherited Property Details

data

data?: CustomAuthAccountData

Property Value

Inherited From AuthFlowResultBase.data

error

error?: AuthMethodRegistrationSubmitChallengeError

Property Value

Inherited From AuthFlowResultBase.error

state

state: AuthMethodRegistrationSubmitChallengeResultState

Property Value

Inherited From AuthFlowResultBase.state

Method Details

createWithError(unknown)

Creates an AuthMethodRegistrationSubmitChallengeResult with an error.

static function createWithError(error: unknown): AuthMethodRegistrationSubmitChallengeResult

Parameters

error

unknown

The error that occurred.

Returns

The AuthMethodRegistrationSubmitChallengeResult with error.

isCompleted()

Checks if the result indicates that registration is completed.

function isCompleted(): boolean

Returns

boolean

true if registration is completed, false otherwise.

isFailed()

Checks if the result is in a failed state.

function isFailed(): boolean

Returns

boolean

true if the result is failed, false otherwise.