Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logout method #11

Open
Foxar opened this issue May 21, 2021 · 0 comments
Open

Logout method #11

Foxar opened this issue May 21, 2021 · 0 comments
Assignees
Labels

Comments

@Foxar
Copy link
Owner

Foxar commented May 21, 2021

We are using a JWT specification, meaning authorization is done through loggin in, saving the JWT token that was returned by API, then signing all authorization-requiring API endpoints with that JWT token.

As such, I feel that to implement 'log out' functionality, it can be entirely done on frontend, through a button that deletes the jwt cookies, "forgetting them", along any others used to signify to user that he is 'signed in' (any cookies like currentuser: myaccount).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants