bsoc-bitbyte/busify

[Feature Request]: Add a logout feature

Closed this issue · 1 comments

Is your feature request related to a problem? Please describe.

Screenshot (33)

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

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