Session logs out if tab is closed in chrome (self hosted, docker)
I have to log in each time I close the tab in chrome.
Any documentation on session management?
5 Replies
Perhaps the same solution as here https://discord.com/channels/1130383047699738754/1244555654413156352/1244579711317970984
Yep, what values do you have in your environment variable regarding access token and refresh token expiration?
I don't have them set tbh, thought there were sane defaults π
Which one is which? REFRESH_TOKEN_EXPIRES_IN vs ACCESS_TOKEN_EXPIRES_IN?
https://docs.twenty.com/start/self-hosting/
Welcome | Twenty - Documentation
Twenty is a CRM designed to fit your unique business needs.
Regarding REFRESH_TOKEN_EXPIRES_IN and ACCESS_TOKEN_EXPIRES_IN, we have default values but they are quite low (30m).
The one you want to keep is REFRESH_TOKEN_EXPIRES_IN, as long as this one stays up you will be able to refresh a new access token so ACCESS_TOKEN_EXPIRES_IN does not matter much but you can update that one too.
You can even put something like
REFRESH_TOKEN_EXPIRES_IN=1000y
Great thanks for the explanation @Weiko π