Correct way to logout with SSR #556
Unanswered
ahetawal-p
asked this question in
Q&A
Replies: 1 comment 3 replies
-
I think what's happening here is the request to unset the auth cookies is not completing before you reload the page. The Would it work for you to use the
These might not do what you need if reloading the current page is the necessary app behavior. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
On our index page I have a top menu which hosts the
Sign Out
button.The onClick of
Sign Out
looks like this.I expected this to change my index page context, on the
router.reload
of the page. But at this time I still theauthUser.id
being present even after reload.The page only works correctly when I click a manual refresh on browser.
How can I reflect the correct logout state to my SSR page for updating the UI for a guest user?
Beta Was this translation helpful? Give feedback.
All reactions