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