I generated a access key which expires in 2219. Th...
# ask-a-descoper
a
I generated a access key which expires in 2219. Then i used the project ID and this generate key to exchange for a JWT token using API, https://docs.descope.com/api/access-keys/exchange-key. But JWT i got still have an expiration of 10 minutes. It is not tied to expiration of Access key generated. But descope docs says otherwise
m
the session token you get after exchange has diff expiration, which is configured here
remember, access key should be the long term, and token generated after exchange should be short term
a
But i need a long lived token for my monitoring
m
as you see in screenshot, its configurable, you can modify
a
is it possible to generate a JWT for a tenant which is long lived like 1 year or 2 year and rest all tenants can have 10 minutes
m
doing 1 year long lived jwt is usually not recommended , security wise
a
but is there a way to do it,
m
Not with access keys AFAIK