Hey everyone. I am using supertokens with nextjs a...
# support-questions-legacy
i
Hey everyone. I am using supertokens with nextjs and fastapi with custom ui and the expiration of cookies is really weird. First of all my
st-last-access-token-update
,
sAccessToken
,
sFrontToken
are getting expired on
Mar 29 2024
(after almost 1 year), while my
sRefreshToken
is getting expired on
Jun 03 2023
(after almost 4 months). I have even set the validity in core config file:
Copy code
refresh_token_validity: 144000
access_token_validity: 3600
r
hey @ikak1595 those are cookie expiration times. Which is different from the actual token expiration time.
i
But if I use the default ui, then the expiration time of the cookies is different.
r
hmm. That's odd
can you show me the sign in request's response headers?
and can you send the screenshot of the cookie store?
right. So i think this is a browser thing which sets it to a max of one year maybe. which is why it's setting to 2024. I'll have to check. That being said, the actual expiry of the token is checked based on the payload of the access token.
i
Okay so that means the cookie's expiry is after an year but its value will expire after the time mentioned in core?
r
correct
i
Okay thanks a lot
2 Views