Logout system url ? #17
arminvburren
started this conversation in
General
Replies: 2 comments 2 replies
-
Mm apparently it works with deleting the cookie. Suprising thing though is that I thought the logout page would make the original cookie / token used for login expired on fief server side ? What do I not understand ? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi @arminvburren! The key thing to understand with Fief is that there is actually two kinds of user sessions:
That's why when implementing logout you have to take care of two things:
I hope it clarifies things 😄 That said, it's definitely something that should appear clearly in the documentation! |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I'm trying to create a logout url:
So first I have to put await apparently logout_url = await fief.logout_url("http://localhost:8000") otherwise it says 'FiefAsync.logout_url' was never awaited.
Secondly the redirection works well but ... I am still connected.. meaning if I go on /protected which has for code:
I still have my user / email etc...
What am i doing wrong ? Maybe a cookie to erase in addition of the page ?
Beta Was this translation helpful? Give feedback.
All reactions