@acceleratxr/core_sdk / AuthTotpService

Class: AuthTotpService#

Hierarchy#

Index#

Constructors#

Properties#

Methods#

Constructors#

constructor#

+ new AuthTotpService(apiClient: ApiClient, config: Configuration): AuthTotpService

Overrides ServiceBase.constructor

Defined in src/services/AuthTotpService.ts:10

Parameters:#

Name

Type

apiClient

ApiClient

config

Configuration

Returns: AuthTotpService

Properties#

apiClient#

Protected apiClient: ApiClient

Inherited from ServiceBase.apiClient

Defined in src/ServiceBase.ts:14

The API Client used when making requests to the API backend server.


config#

Protected config: Configuration

Inherited from ServiceBase.config

Defined in src/ServiceBase.ts:19

The SDK configuration to use.


uuid#

Static uuid: string = “f0c3e99e-0529-4855-a0f0-3ba2413bd95f”

Defined in src/services/AuthTotpService.ts:16

Methods#

authenticate#

authenticate(totp: string, userUid: string): Promise<AuthToken | undefined>

Defined in src/services/AuthTotpService.ts:18

Parameters:#

Name

Type

totp

string

userUid

string

Returns: Promise<AuthToken | undefined>