GitHub user dosubot[bot] added a comment to the discussion: The issue regarding 
obtaining an Embedded Token

<!-- Answer -->
You can set the expiration time for Superset guest tokens by configuring the 
GUEST_TOKEN_JWT_EXP_SECONDS variable in your superset_config.py file. This 
value sets the number of seconds before a guest_token expires for all tokens 
generated by your Superset instance. For example, to set tokens to expire after 
1 hour:

```python
GUEST_TOKEN_JWT_EXP_SECONDS = 3600  # 1 hour
```

After updating this setting, restart Superset for the change to take effect. 
The expiration time is included in the 'exp' claim of the JWT and is not set 
per token via the API payload—it is always determined by this server-side 
configuration 
[reference](https://github.com/apache/superset/blob/master/superset/security/manager.py).


<!-- Dosu Comment Footer -->
*To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*

---
<sup>How did I do? 
[Good](https://app.dosu.dev/response-feedback/cd300feb-c3cb-4330-8ae0-7cd397df3cbf?feedback_type=great_response)
 | 
[Irrelevant](https://app.dosu.dev/response-feedback/cd300feb-c3cb-4330-8ae0-7cd397df3cbf?feedback_type=irrelevant_answer)
 | 
[Incorrect](https://app.dosu.dev/response-feedback/cd300feb-c3cb-4330-8ae0-7cd397df3cbf?feedback_type=incorrect_sources)
 | 
[Verbose](https://app.dosu.dev/response-feedback/cd300feb-c3cb-4330-8ae0-7cd397df3cbf?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/cd300feb-c3cb-4330-8ae0-7cd397df3cbf?feedback_type=hallucination)
 | [Report 
🐛](https://app.dosu.dev/response-feedback/cd300feb-c3cb-4330-8ae0-7cd397df3cbf?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/cd300feb-c3cb-4330-8ae0-7cd397df3cbf?feedback_type=other)</sup>&nbsp;&nbsp;[![Chat
 with 
Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github)&
 nbsp;[![Join 
Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share
 on 
X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/discussions/35670)

GitHub link: 
https://github.com/apache/superset/discussions/35670#discussioncomment-14696999

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: 
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to