@acceleratxr/core_sdk / AuthGoogleService

Class: AuthGoogleService#

Hierarchy#

Implements#

Index#

Constructors#

Properties#

Methods#

Constructors#

constructor#

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

Overrides ServiceBase.constructor

Defined in src/services/AuthGoogleService.ts:11

Parameters:#

Name

Type

apiClient

ApiClient

config

Configuration

Returns: AuthGoogleService

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 = “f45481b6-04e3-4001-81ef-5e92ae3060f4”

Defined in src/services/AuthGoogleService.ts:17

Methods#

authenticate#

authenticate(code: string, verifier?: undefined | string, callbackURL?: undefined | string): Promise<AuthToken | undefined>

Implementation of IOAuth2Service

Defined in src/services/AuthGoogleService.ts:19

Parameters:#

Name

Type

code

string

verifier?

undefined | string

callbackURL?

undefined | string

Returns: Promise<AuthToken | undefined>


connect#

connect(code: string, verifier?: undefined | string, callbackURL?: undefined | string, force?: undefined | false | true): Promise<void>

Implementation of IOAuth2Service

Defined in src/services/AuthGoogleService.ts:34

Parameters:#

Name

Type

code

string

verifier?

undefined | string

callbackURL?

undefined | string

force?

undefined | false | true

Returns: Promise<void>


requestAuth#

requestAuth(callbackURL?: undefined | string): Promise<string>

Implementation of IOAuth2Service

Defined in src/services/AuthGoogleService.ts:52

Parameters:#

Name

Type

callbackURL?

undefined | string

Returns: Promise<string>