[Feature Request]: Add a logout feature
Closed this issue · 1 comments
Pratik2026 commented
Is your feature request related to a problem? Please describe.
Currently, there isn't any logout option available for the logged-in users.
Describe the solution you'd like
Create a menu that will open after clicking on the name. This menu will show the two options ( for now ) :
- View Profile
- Logout
On clicking on logout, you have to first clear the token stored in the cookie and then change the global auth state.
Describe alternatives you've considered
No response
Developer Help
No response
Pratik2026 commented
I would like to work on this issue. Please assign it to me.
I will simply create a logout function that will clear the JWT and change the global Auth state. At last, rerender the Home page with GoogleButton Component