Foxar / SolidStream

A fullstack livestreaming website, created as exercise in Symfony and React,js
3 stars 3 forks source link

Logout method #11

Open Foxar opened 3 years ago

Foxar commented 3 years ago

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).