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
Hey, I've read in the documentation that when signing out, the session should be deleted and the user should be directed to the website's home page. However, whenever I execute the signOut() function, the session is deleted but the user stays on the signout page. Nothing happens in the form action other than calling signOut(). It is a marked with "use server" and async/await.
Also, when I force a redirect to the homepage using signOut({ redirectTo: "/"}), it does redirect, but none of the session updates until I manually reload the page. I am using useSession in my navbar and the navbar doesn't update after signing out until I manually refresh.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hey, I've read in the documentation that when signing out, the session should be deleted and the user should be directed to the website's home page. However, whenever I execute the signOut() function, the session is deleted but the user stays on the signout page. Nothing happens in the form action other than calling signOut(). It is a marked with "use server" and async/await.
Also, when I force a redirect to the homepage using signOut({ redirectTo: "/"}), it does redirect, but none of the session updates until I manually reload the page. I am using useSession in my navbar and the navbar doesn't update after signing out until I manually refresh.
Beta Was this translation helpful? Give feedback.
All reactions