Skip to main content

Class: TokenCache

Hierarchy

Constructors

constructor

new TokenCache(config): TokenCache

Parameters

NameType
configTokenCacheConfig

Returns

TokenCache

Overrides

AbstractCacheAdapter<RefreshTokenSet, [string]>.constructor

Defined in

packages/backend/server/src/cache-adapters/token-cache.ts:23

Properties

cacheConfig

Protected cacheConfig: CacheAdapterConfig

Inherited from

AbstractCacheAdapter.cacheConfig

Defined in

packages/backend/server/src/cache-adapters/abstract-cache-adapter.ts:13


cacheProvider

Protected cacheProvider: CacheProvider<RefreshTokenSet, [string]>

Overrides

AbstractCacheAdapter.cacheProvider

Defined in

packages/backend/server/src/cache-adapters/token-cache.ts:21


config

Protected config: TokenCacheConfig

Overrides

AbstractCacheAdapter.config

Defined in

packages/backend/server/src/cache-adapters/token-cache.ts:20


REFRESH_HOLDOVER_WINDOW_SECS

Protected Static REFRESH_HOLDOVER_WINDOW_SECS: number = 60

Defined in

packages/backend/server/src/cache-adapters/token-cache.ts:18

Methods

invalidateCache

invalidateCache(key): Promise<void>

Parameters

NameType
keystring

Returns

Promise<void>

Inherited from

AbstractCacheAdapter.invalidateCache

Defined in

packages/backend/server/src/cache-adapters/abstract-cache-adapter.ts:25


invalidateFromJwt

invalidateFromJwt(validatedJwt): Promise<void>

Parameters

NameType
validatedJwtstring

Returns

Promise<void>

Overrides

AbstractCacheAdapter.invalidateFromJwt

Defined in

packages/backend/server/src/cache-adapters/token-cache.ts:35


performTokenRefresh

performTokenRefresh(validatedRefreshJwt): Promise<undefined | RefreshTokenSet>

Parameters

NameType
validatedRefreshJwtstring

Returns

Promise<undefined | RefreshTokenSet>

Defined in

packages/backend/server/src/cache-adapters/token-cache.ts:50


refreshTokenSet

refreshTokenSet(validatedRefreshJwt): Promise<undefined | RefreshTokenSetResult>

Parameters

NameType
validatedRefreshJwtstring

Returns

Promise<undefined | RefreshTokenSetResult>

Defined in

packages/backend/server/src/cache-adapters/token-cache.ts:39