Skip to content

Conversation

@coyotte508
Copy link
Member

@coyotte508 coyotte508 commented Sep 25, 2025

This means the user's session will be reset if the value of the coupled cookie name changes. Eg if the token cookie changes, the user's session will be reset (if COUPLE_SESSION_WITH_COOKIE_NAME=token)

Useful if the app is deployed on a subpath of another site, and you want to reset the session when the auth for the user changes

Alternative to #1877 - with a broader oauth support (inference request made using oauth token, supprt for oauth refresh token, support for auto-redirecting to oauth if user is not logged in, ...) we can keep using oauth, while handling when the user changes accounts on the main site

This means the user's session will be reset if the value of the coupled cookie name changes.

Useful if the app is deployed on a subpath of another site, and you want to reset the session when the auth
for the user changes
@coyotte508 coyotte508 merged commit 05a3712 into main Oct 2, 2025
3 of 4 checks passed
@coyotte508 coyotte508 deleted the cookie-reset-auth branch October 2, 2025 14:42
andrewelawrence pushed a commit to LLM-Plurality/chat that referenced this pull request Oct 14, 2025
* Add COUPLE_SESSION_WITH_COOKIE_NAME env var

This means the user's session will be reset if the value of the coupled cookie name changes.

Useful if the app is deployed on a subpath of another site, and you want to reset the session when the auth
for the user changes

* fix test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant