boolean-uk / team-dev-frontend-client

1 stars 11 forks source link

Add logout route and functionality #33

Closed mbalabanov closed 1 year ago

mbalabanov commented 2 years ago

Currently, the logout button does not do anything. After logging in as a user, I need to be able to logout/logoff by clicking on the "logout" button. We need a route at /logout and the appropriate functional component to logout.

glowkeeper commented 2 years ago

I think, if you look closely, there is a very small signout thingy...but yeah, it needs building properly...

mbalabanov commented 2 years ago

I added a quick logout to the Heaser component to clear the token from localstorage and navigate to "/".