Class: TokenCache
Hierarchy
-
AbstractCacheAdapter
<RefreshTokenSet
, [string
]>↳
TokenCache
Constructors
constructor
• new TokenCache(config
): TokenCache
Parameters
Name | Type |
---|---|
config | TokenCacheConfig |
Returns
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
Name | Type |
---|---|
key | string |
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
Name | Type |
---|---|
validatedJwt | string |
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
Name | Type |
---|---|
validatedRefreshJwt | string |
Returns
Promise
<undefined
| RefreshTokenSet
>
Defined in
packages/backend/server/src/cache-adapters/token-cache.ts:50
refreshTokenSet
▸ refreshTokenSet(validatedRefreshJwt
): Promise
<undefined
| RefreshTokenSetResult
>
Parameters
Name | Type |
---|---|
validatedRefreshJwt | string |
Returns
Promise
<undefined
| RefreshTokenSetResult
>
Defined in
packages/backend/server/src/cache-adapters/token-cache.ts:39