#Session logs out if tab is closed in chrome (self hosted, docker)
1 messages · Page 1 of 1 (latest)
Perhaps the same solution as here #1244555654413156352 message
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/
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