Previously I was using the appSession cookie to check when the session expires and show a notification on the front end. In v4 that cookie is encrypted how would i get this data?
Hi @AuthUser121
Welcome to the Auth0 Community!
I would suggest reading through the following Knowledge Article that mentions how to extend the appSession cookie, which also mentions the standard 24 hours expiry time when the timeout is configured to 30 days.
Additionally, these are also documented in our GitHub Space, where the properties are also defined, which should come in handy.
Hope this helped!
Gerald
Hi @gerald.czifra thank you for getting to this, the article you mentioned talks about how to set the session expiration at the app level but im specifically talking about getting the expiration time from the appSession cookie thats now encrypted.
in v3 the header of that tooken looked something like this
{
“alg”: “xxx”,
“enc”: “xxx”,
“uat”: xxx,
“iat”: xxx,
“exp”: xxx
}
and I would extract the exp value to see when the session would end. How do i get this value now that its encrypted