Librechat freezes on a blank page when accessed through an IAP Authentication #8334
jmv-gamned
started this conversation in
Help Wanted
Replies: 0 comments
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.
-
Hello the community,
Our Librechat is running on a GKE cluster behind IAP authentication. The IAP token refresh occurs correctly when we access the Librechat home url (we see a session cookie __Host-GCP_IAP_AUTH_TOKEN_XXXXX ).
However, when accessing one of Librechat's sub-pages directly (e.g. /c/new or /login), ajax calls to /api/auth/refresh return a 401 "empty token" error, as GCP blocks the call because the __Host-GCP_IAP_AUTH_TOKEN_XXXXX session cookie is missing. That causes Librechat to freeze and stay on a blank page.
Is this a known problem when running Librechat behind IAP authentication? Is there a way to force a redirect to the homepage on 401 errors ?
I'm stuck and I haven't found anything yet.
Beta Was this translation helpful? Give feedback.
All reactions