Automatic logout #3001
-
I've been self-hosting the application via docker compose and tailscale for a few weeks now and I love it. The one thing that keeps bothering me is automatic logout. Often times I will leave the application open while I am working. After some time, the UI will allow me to type in a prompt, but as soon as I hit enter, it will redirect me to the login page and my prompt will be lost. I'm not sure if there's a setting to change this behavior or if there's something wrong with my setup, but I'd also be happy to open an issue for this if it isn't already addressed. Please let me know! Thank you for your help. Edit: I'm using Firefox browser on Linux |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Yes this is a common grievance, it's been discussed a lot: #572 It's because we use a secure cookie setup, so if you're using a non-https connection, you will get logged out on refresh. You may be getting logged out of a message request due to low values for session expiry time as well. You can look into the discussion linked above as well as the expiry values defined here: https://www.librechat.ai/docs/configuration/authentication#session-expiry-and-refresh-token Let me know if any of this helps you. |
Beta Was this translation helpful? Give feedback.
-
If you use the tailscale serve command you can create an easy reverse proxy to setup a https port for it to get around that. I found it easier than any of the other reverse proxy options |
Beta Was this translation helpful? Give feedback.
Yes this is a common grievance, it's been discussed a lot: #572
It's because we use a secure cookie setup, so if you're using a non-https connection, you will get logged out on refresh. You may be getting logged out of a message request due to low values for session expiry time as well.
You can look into the discussion linked above as well as the expiry values defined here:
https://www.librechat.ai/docs/configuration/authentication#session-expiry-and-refresh-token
Let me know if any of this helps you.