You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "dosubot[bot] (via GitHub)" <gi...@apache.org> on 2026/05/02 03:05:14 UTC
Re: [D] How can I increase or change the expiration time of the JWT returned by /api/v1/security/guest_token/ in Superset [superset]
GitHub user dosubot[bot] edited a comment on the discussion: How can I increase or change the expiration time of the JWT returned by /api/v1/security/guest_token/ in Superset
<!-- Answer -->
You can increase the expiration time of the JWT returned by /api/v1/security/guest_token/ by setting the GUEST_TOKEN_JWT_EXP_SECONDS configuration variable in your superset_config.py file. The default is 300 seconds (5 minutes), but you can set it to any number of seconds you prefer. For example, to set the token to expire after 1 hour:
```python
GUEST_TOKEN_JWT_EXP_SECONDS = 3600 # 1 hour
```
There is no environment variable for this; it must be set in superset_config.py. Keep in mind that longer-lived tokens can increase security risks if they are leaked or intercepted, so choose an expiration time that balances user experience and security for your use case.
[Reference](https://github.com/apache/superset/blob/master/superset/config.py)
<!-- Dosu Comment Footer -->
*To reply, just mention [@dosu](https://go.dosu.dev/dosubot?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=reply-with-mention&utm_term=apache%2Fsuperset).*
---
Docs are dead. Just use [Dosu](https://dosu.dev?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-tagline&utm_term=apache%2Fsuperset).
[](https://app.dosu.dev/response-feedback?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-feedback&utm_term=apache%2Fsuperset&message_id=374d8f63-6a18-4e8a-8813-6ecf98067321) [](https://github.dosu.com/apache/superset?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-ask-repo&utm_term=apache%2Fsuperset) [](https://app.dosu.dev/signup?referrer=openSource&source=github-footer&utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-share-team&utm_term=apache%2Fsuperset)
GitHub link: https://github.com/apache/superset/discussions/35995#discussioncomment-14877636
----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org