Embed secrets (JWTs)
Refreshing Expired JWTs
How to refresh an expired JWT
When your JWT expires, the embedded session will stop working, which means that no new data can be loaded without first creating a new JWT. Depending on how you’ve implemented your dashboards, you may be generating a new JWT when your customer refreshes the page. But if you want to create JWTs with short expiration times and want to avoid requiring your users to refresh on expiration, you can add an event listener to be notified when the JWT is about to expire and respond with a new one.
For more information, see the examples below, or our documentation on Custom Events