Skip to main content

AccountSecurityStore

Axis Vertex JavaScript SDK: react


Axis Vertex JavaScript SDK: react / AccountSecurityStore

Class: AccountSecurityStore

One owner-scoped state machine for Embedded, Dialog, AccountCenter and Headless.

Constructors​

Constructor​

new AccountSecurityStore(client): AccountSecurityStore

Parameters​

client​

AuthClient

Returns​

AccountSecurityStore

Methods​

acknowledge()​

acknowledge(): boolean

Call only after presenting the definitive result; no implicit logout hides success.

Returns​

boolean


authorizeProvider()​

authorizeProvider(methodId): Promise<MfaOperation | null>

Parameters​

methodId​

string

Returns​

Promise<MfaOperation | null>


begin()​

begin(): Promise<MfaOperation | null>

Returns​

Promise<MfaOperation | null>


cancel()​

cancel(): Promise<MfaOperation | null>

Returns​

Promise<MfaOperation | null>


challenge()​

challenge(identifierId): Promise<MfaOperation | null>

Parameters​

identifierId​

string

Returns​

Promise<MfaOperation | null>


clearSensitive()​

clearSensitive(): void

Closing never claims server cancellation; the receipt stays available for status/cancel.

Returns​

void


complete()​

complete(code?): Promise<MfaOperation | null>

Parameters​

code?​

string

Returns​

Promise<MfaOperation | null>


create()​

create(type, version): Promise<MfaOperation | null>

Parameters​

type​

MfaOperationType

version​

number

Returns​

Promise<MfaOperation | null>


discardReceipt()​

discardReceipt(): void

This forgets local status tracking, not a server cancellation.

Returns​

void


getSnapshot()​

getSnapshot(): AccountSecurityOperationState

Returns​

AccountSecurityOperationState


prepareReauthentication()​

prepareReauthentication(): object

Explicit sign-in handoff stores only the bound, expiring read receipt.

Returns​

object

ref​

ref: string = receipt.ref

type​

type: MfaOperationType = receipt.type


providerCallback()​

providerCallback(): Promise<MfaOperation | null>

Returns​

Promise<MfaOperation | null>


query()​

query(ref?): Promise<MfaOperation | null>

Parameters​

ref?​

string = ...

Returns​

Promise<MfaOperation | null>


reauthenticate()​

reauthenticate(proof): Promise<MfaOperation | null>

Parameters​

proof​

MfaOperationReauthentication

Returns​

Promise<MfaOperation | null>


resetProof()​

resetProof(): void

Returns​

void


retryCreate()​

retryCreate(): Promise<MfaOperation | null>

Returns​

Promise<MfaOperation | null>


startStepUp()​

startStepUp(): Promise<MfaOperation | null>

Returns​

Promise<MfaOperation | null>


subscribe()​

subscribe(listener): () => void

Parameters​

listener​

() => void

Returns​

() => void


verifyTotp()​

verifyTotp(code): Promise<MfaOperation | null>

Parameters​

code​

string

Returns​

Promise<MfaOperation | null>


verifyWebAuthn()​

verifyWebAuthn(): Promise<MfaOperation | null>

Returns​

Promise<MfaOperation | null>