@accounts/client

@accounts/clientGlobals

Index

Enumerations

Classes

Interfaces

Type aliases

Functions

Object literals

Type aliases

ValueOrPromise

Ƭ ValueOrPromise: T | Promise‹T›

Defined in types/token-storage.ts:1

Functions

Const isTokenExpired

isTokenExpired(token: string): boolean

Defined in utils.ts:8

Parameters:

NameType
tokenstring

Returns: boolean

Object literals

Const defaultOptions

defaultOptions: object

Defined in accounts-client.ts:14

tokenStorage

tokenStorage: TokenStorage = tokenStorageLocal

Defined in accounts-client.ts:15

tokenStoragePrefix

tokenStoragePrefix: string = "accounts"

Defined in accounts-client.ts:16


Const tokenStorageLocal

tokenStorageLocal: object

Defined in token-storage-local.ts:3

getItem

getItem(key: string): string | null

Defined in token-storage-local.ts:8

Parameters:

NameType
keystring

Returns: string | null

removeItem

removeItem(key: string): void

Defined in token-storage-local.ts:12

Parameters:

NameType
keystring

Returns: void

setItem

setItem(key: string, value: string): void

Defined in token-storage-local.ts:4

Parameters:

NameType
keystring
valuestring

Returns: void