SudoSOS Back-end API / internal/middleware / MiddlewareOptions
Interface: MiddlewareOptions ​
The configuration options for the token middleware.
Properties ​
refreshFactor ​
ts
refreshFactor: number;The factor of the configured expiry of the token handler at which the token will be refreshed. Set to 0.0 for refreshing on every request. Setting to 1.0 or higher will prevent refeshing, as tokens will expire before a possible refresh.
tokenHandler ​
ts
tokenHandler: TokenHandler;The token handler instance internally used by the middleware.