Edit

Share via


GetAccessTokenResult class

Extends

AuthFlowResultBase<GetAccessTokenResultState, GetCurrentAccountAccessTokenError, AuthenticationResult>

Constructors

GetAccessTokenResult(AuthenticationResult)

Creates a new instance of GetAccessTokenResult.

Inherited Properties

data
error
state

Methods

createWithError(unknown)

Creates a new instance of GetAccessTokenResult with an error.

isCompleted()

Checks if the result is completed.

isFailed()

Checks if the result is failed.

Constructor Details

GetAccessTokenResult(AuthenticationResult)

Creates a new instance of GetAccessTokenResult.

new GetAccessTokenResult(resultData?: AuthenticationResult)

Parameters

resultData

AuthenticationResult

The result data of the access token.

Inherited Property Details

data

data?: AuthenticationResult

Property Value

AuthenticationResult

Inherited From AuthFlowResultBase.data

error

error?: GetCurrentAccountAccessTokenError

Property Value

Inherited From AuthFlowResultBase.error

state

state: GetAccessTokenResultState

Property Value

Inherited From AuthFlowResultBase.state

Method Details

createWithError(unknown)

Creates a new instance of GetAccessTokenResult with an error.

static function createWithError(error: unknown): GetAccessTokenResult

Parameters

error

unknown

The error that occurred.

Returns

The result with the error.

isCompleted()

Checks if the result is completed.

function isCompleted(): this

Returns

this

isFailed()

Checks if the result is failed.

function isFailed(): this

Returns

this