T
Twentyβ€’4mo ago
Milamber

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
charles
charlesβ€’4mo ago
Yep, what values do you have in your environment variable regarding access token and refresh token expiration?
Milamber
Milamberβ€’4mo ago
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.
Weiko
Weikoβ€’4mo ago
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
Milamber
Milamberβ€’4mo ago
Great thanks for the explanation @Weiko πŸ™‚
Want results from more Discord servers?
Add your server