SetJwtCallback
Home > @gooddata/sdk-backend-tiger > SetJwtCallback
SetJwtCallback 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.
Callback that is used to set the new JWT value before original token expires.
Optionally, the callback accepts the number of seconds before the token expiration in which JwtIsAboutToExpireHandler will be called the next time. Expiration reminder will not be called when value is not provided or it is not greater than zero.
Signature:
export type SetJwtCallback = (jwt: string, secondsBeforeTokenExpirationToCallReminder?: number) => void;