Skip to content

Namespace: account

Type aliases

LoginOptions

Ƭ LoginOptions: Object

Options to pass to login.

Type declaration

Name Type Description
trackProps? Record<string, unknown> Additional tracking properties that will be sent along with login events.

Defined in

login.ts:15

Functions

getPlayerId

getPlayerId(): string | undefined

Gets the ID of the player, which may be undefined if they haven't interacted with any Playpass backend services yet.

The player's ID may change after a call to login.

Returns

string | undefined

Defined in

login.ts:63


isLoggedIn

isLoggedIn(): boolean

Returns

boolean

Defined in

login.ts:67


login

login(opts?): Promise<boolean>

Parameters

Name Type
opts? LoginOptions

Returns

Promise<boolean>

Defined in

login.ts:71


logout

logout(): void

Returns

void

Defined in

login.ts:144