Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logout doesn't work #3763

Open
arouene opened this issue Jan 24, 2025 · 0 comments
Open

Logout doesn't work #3763

arouene opened this issue Jan 24, 2025 · 0 comments

Comments

@arouene
Copy link

arouene commented Jan 24, 2025

Hello,

We are using AUTH_TYPE=google_oauth as authentification.

Once logged, if we try to logout, it will not logout. Currently it will redirect to /auth/login, that see you are logged and so redirect to /chat.

In web/src/app/auth/logout/route.ts, it only removes the cookie when NEXT_PUBLIC_CLOUD_ENABLED is true, I wonder why we do not always delete the auth cookie ?

As a quick fix, I replaced NEXT_PUBLIC_CLOUD_ENABLED by true in web/src/app/auth/logout/route.ts, and I have the expected behavior.

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

No branches or pull requests

1 participant