Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface InvalidationStrategyOptions<Device, Location>

Type parameters

  • Device: DeviceBase

  • Location

Hierarchy

  • InvalidationStrategyOptions

Properties

Readonly invalidAccessTokensCache

invalidAccessTokensCache: InvalidAccessTokensCache

Cache where invalid access tokens will be stored.

Optional Readonly refreshAccessTokenHook

refreshAccessTokenHook: ReadUserSessionHook<Device, Location, UserSessionMetaData<Device, Location>>

Refresh access token hook.
Defaults to hook which ensures that in case device is present in both context and session metadata, their name and type needs to be equal.

Readonly refreshTokenLength

refreshTokenLength: number

Length of the refresh token.
Because base64 encoding is used underneath, this is not the string length. For example, to create a token of length 24, you want a byte length of 18.
Value of this option should not be lower than 15.

Important! To prevent brute forcing create long enough session id's.

Readonly refreshTokenTtl

refreshTokenTtl: number

TTL if the refresh token.

Readonly refreshTokensStorage

refreshTokensStorage: UserSessionStorage<Device, Location, UserSessionMetaData<Device, Location>>

Storage where refresh tokens will be placed.