Skip to main content

SessionLogin

Axis Vertex JavaScript SDK: react


Axis Vertex JavaScript SDK: react / SessionLogin

Class: SessionLogin

Implements​

Constructors​

Constructor​

new SessionLogin(session): SessionLogin

Parameters​

session​

ServerSession

Returns​

SessionLogin

Methods​

authenticate()​

authenticate(input): Promise<LoginView>

Parameters​

input​

PrimaryAuthentication

Returns​

Promise<LoginView>

Implementation of​

AuthenticationFlow.authenticate


authenticateMagicLink(url, identifier): Promise<LoginView>

Parameters​

url​

string

identifier​

LoginIdentifier

Returns​

Promise<LoginView>

Implementation of​

AuthenticationFlow.authenticateMagicLink


authorizeProvider()​

authorizeProvider(providerId, proof?): Promise<{ authorizationUrl: string; expiresAt: string; }>

Parameters​

providerId​

string

proof?​

ProviderRegistrationProof

Returns​

Promise<{ authorizationUrl: string; expiresAt: string; }>

Implementation of​

AuthenticationFlow.authorizeProvider


cancel()​

cancel(): Promise<LoginView>

Returns​

Promise<LoginView>

Implementation of​

AuthenticationFlow.cancel


challenge()​

challenge(method, identifier): Promise<{ challengeExpiresAt: string; cooldownSeconds: number; expiresAt: string; }>

Parameters​

method​

PrimaryProofMethod

identifier​

LoginIdentifier

Returns​

Promise<{ challengeExpiresAt: string; cooldownSeconds: number; expiresAt: string; }>

Implementation of​

AuthenticationFlow.challenge


get()​

get(): Promise<LoginView>

Returns​

Promise<LoginView>

Implementation of​

AuthenticationFlow.get


getSnapshot()​

getSnapshot(): LoginView

Returns​

LoginView

Implementation of​

AuthenticationFlow.getSnapshot


invalidate()​

invalidate(): void

Returns​

void

Implementation of​

AuthenticationTransaction.invalidate


persistForNavigation()​

persistForNavigation(): void

Explicit short-lived navigation storage: no identifiers, password, proof or ordinary tokens.

Returns​

void

Implementation of​

AuthenticationTransaction.persistForNavigation


verifyMfa()​

verifyMfa(method, code): Promise<LoginView>

Parameters​

method​

MfaProofMethod

code​

string

Returns​

Promise<LoginView>

Implementation of​

AuthenticationFlow.verifyMfa