bsoc-bitbyte / busify

A centralised bus ticket booking system that will allow the students to book tickets in advance through an online website, saving time and effort.
https://busify.vercel.app
31 stars 68 forks source link

[Feature Request]: Add a logout feature #29

Closed Pratik2026 closed 1 year ago

Pratik2026 commented 1 year ago

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

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 1 year ago

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