@acceleratxr/core_sdk / AuthPhoneService

Class: AuthPhoneService#

Hierarchy#

Index#

Constructors#

Properties#

Methods#

Constructors#

constructor#

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

Overrides ServiceBase.constructor

Defined in src/services/AuthPhoneService.ts:10

Parameters:#

Name

Type

apiClient

ApiClient

config

Configuration

Returns: AuthPhoneService

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 = “baa3d0b0-ab45-424f-b11b-d86e7cf2625f”

Defined in src/services/AuthPhoneService.ts:16

Methods#

authenticate#

authenticate(username: string, code: string): Promise<AuthToken | undefined>

Defined in src/services/AuthPhoneService.ts:18

Parameters:#

Name

Type

username

string

code

string

Returns: Promise<AuthToken | undefined>


sendCode#

sendCode(username: string): Promise<void>

Defined in src/services/AuthPhoneService.ts:28

Parameters:#

Name

Type

username

string

Returns: Promise<void>