Skip to content

Logging out from system #167

Answered by frankie567
shirkan asked this question in Q&A
Apr 4, 2023 · 1 comments · 5 replies
Discussion options

You must be logged in to vote

So, after investigating, it seems that there is a race condition between <RequireAuth> and the logout redirection. When we call logout, it clears the session from the storage, which triggers a re-render of <RequireAuth> and prevent the redirection to logout from happening.

I'll see how to improve this in the SDK.

In the meantime, an easy solution is to implement a public <Logout> page which calls the logout method. Then, in your user menu, just make a link to this page.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@shirkan
Comment options

@frankie567
Comment options

@shirkan
Comment options

@frankie567
Comment options

Answer selected by shirkan
@shirkan
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants