JwtIsAboutToExpireHandler
Home > @gooddata/sdk-backend-tiger > JwtIsAboutToExpireHandler
JwtIsAboutToExpireHandler type
This API is provided as an alpha preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Handler that will be called by a JWT authentication provider before the JWT is about to expire. The handler will receive a method that can be used to set a new JWT value.
The method throws an exception when the provided JWT is not for the same subject as the previously set JWT (if such token was already set).
Signature:
export type JwtIsAboutToExpireHandler = (setJwt: SetJwtCallback) => void;
References: SetJwtCallback