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

await signOut won't work in this situation. #12374

Open
jcyuan opened this issue Dec 12, 2024 · 0 comments
Open

await signOut won't work in this situation. #12374

jcyuan opened this issue Dec 12, 2024 · 0 comments
Labels
bug Something isn't working triage Unseen or unconfirmed by a maintainer yet. Provide extra information in the meantime.

Comments

@jcyuan
Copy link

jcyuan commented Dec 12, 2024

Environment

System:
OS: Windows 10 10.0.19045
CPU: (24) x64 13th Gen Intel(R) Core(TM) i7-13700KF
Memory: 13.07 GB / 31.83 GB
Binaries:
Node: 20.15.0 - D:\Program Files\nodejs\node.EXE
Yarn: 1.22.22 - ~\AppData\Roaming\npm\yarn.CMD
npm: 10.7.0 - D:\Program Files\nodejs\npm.CMD
Browsers:
Edge: Chromium (127.0.2651.74)
Internet Explorer: 11.0.19041.4355
npmPackages:
next: ^14.1.4 => 14.2.18
react: 18.2.0 => 18.2.0

Reproduction URL

https://github.com/jcyuan/signout-not-work

Describe the issue

cookie response by signOut will conflict with getSession/useSession which causes signOut failed

How to reproduce

1, npm run dev to run the Reproduction repo
2, login
3, click Gobug button to redirect to the logout page, and you will see it

Expected behavior

explicit cookie controlling order on client side. maybe some solution like stop the SessionProvider's events and auto refetching process when i want (e.g. when i need to call signOut)

@jcyuan jcyuan added bug Something isn't working triage Unseen or unconfirmed by a maintainer yet. Provide extra information in the meantime. labels Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage Unseen or unconfirmed by a maintainer yet. Provide extra information in the meantime.
Projects
None yet
Development

No branches or pull requests

1 participant