You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When i signout using the signOut function from auth.ts export, the app redirect to the callbackUrl as expect, but the session state in client does not update, it still displaying content that supposed to be authenicated view only. The content only disappear when i press F5 to fully reload the page.
The legacy signOut function export from next-auth/react still works as expected though
How to reproduce
signin the app
press btn Go to Sign In Page to redirect to signOut page
perform signOut by press btn Confirm Sign out and app will redirect to the callBackUrl
Expected behavior
the useSession state have to return unauthenticated
The text was updated successfully, but these errors were encountered:
Environment
Reproduction URL
https://github.com/Senbonzakura1234/debug-signout-nextauth
Describe the issue
When i signout using the signOut function from
auth.ts
export, the app redirect to thecallbackUrl
as expect, but the session state in client does not update, it still displaying content that supposed to be authenicated view only. The content only disappear when i press F5 to fully reload the page.The legacy
signOut
function export fromnext-auth/react
still works as expected thoughHow to reproduce
Go to Sign In Page
to redirect tosignOut
pageConfirm Sign out
and app will redirect to the callBackUrlExpected behavior
useSession
state have to returnunauthenticated
The text was updated successfully, but these errors were encountered: