OpenID Session Expiry Causes UX Degradation #9656
Unanswered
changkun
asked this question in
Troubleshooting
Replies: 1 comment 2 replies
-
Check the browser logs when you see this error, as well as the network tab: "Error connecting to server, try refreshing the page" That will help determine the root issue, as it's not exclusive to session expiration, as that will more than likely trigger a redirect to /login page.
Also, try on the latest version. I've tested with short expiry times, and I'm getting redirected as expected. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
What happened?
We deployed LibreChat integrated with an OpenID Identity Provider (Keycloak) and observed a recurring issue affecting user experience.
Users frequently encounter the following error after being inactive for an extended period:
This disrupts the chat flow and significantly downgrades the overall UX.
Version Information
v0.8.0-rc2
Steps to Reproduce
At step 5, the client attempts to refresh tokens via /api/auth/refresh, but the request fails with an "Invalid OpenID refresh token" error. The backend logs show:
Proposed Fixes
What browsers are you seeing the problem on?
No response
Relevant log output
2025-09-15 19:30:26 error: [refreshController] OpenID token refresh error - server responded with an error in the response body
Screenshots
No response
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions