Skip to main content

TokenStorage

@authgear/web / TokenStorage

Interface: TokenStorage

TokenStorage is an interface controlling when refresh tokens are stored. Normally you do not need to implement this interface. You can use one of those implementations provided by the SDK.

Implemented by

Table of contents

Methods

Methods

delRefreshToken

delRefreshToken(namespace): Promise<void>

Parameters

NameType
namespacestring

Returns

Promise<void>

Defined in

packages/authgear-web/index.d.ts:195


getRefreshToken

getRefreshToken(namespace): Promise<null | string>

Parameters

NameType
namespacestring

Returns

Promise<null | string>

Defined in

packages/authgear-web/index.d.ts:194


setRefreshToken

setRefreshToken(namespace, refreshToken): Promise<void>

Parameters

NameType
namespacestring
refreshTokenstring

Returns

Promise<void>

Defined in

packages/authgear-web/index.d.ts:193