jamesgeer / conf-twitter-bot

A Twitter Bot to post about academic papers
MIT License
4 stars 0 forks source link

Button still says "Sign in" after signing in #44

Closed EdwardChristian closed 1 year ago

EdwardChristian commented 2 years ago

If you are already a signed in user and click the sign in button, the form for signing in appears and you can basically sign in again (useless action)

To fix this, we should hide the sign in button if the user is signed in and make sure we check for a signed in user whenever the sign in form page is loaded.

jamesgeer commented 2 years ago

Change the button to say "Log Out" and send a post request to /api/sessions/logout located in sessions.route.ts