> Documentation index: https://www.gooddata.ai/docs/gooddata-ui/llms.txt lists every page of these docs as Markdown.

# JwtIsAboutToExpireHandler

- Package: [@gooddata/sdk-backend-tiger](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-backend-tiger/index.md)
- Kind: type-alias
- Stability: alpha
- Source: https://github.com/gooddata/gooddata-ui-sdk/blob/rel/11.64/libs/sdk-backend-tiger/src/auth.ts

> **Alpha API.** Initial API, highly likely to change outside SemVer. Don't build on it in production. See [API maturity](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/platform/api-maturity/index.md).
> 

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:**

```typescript
export type JwtIsAboutToExpireHandler = (setJwt: SetJwtCallback) => void;
```
**References:** [SetJwtCallback](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-backend-tiger/sdk-backend-tiger.setjwtcallback/index.md)
