JwtIsAboutToExpireHandler
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production.
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).
export type JwtIsAboutToExpireHandler = (setJwt: SetJwtCallback) => void;
References: SetJwtCallback