usememos / memos

An open-source, lightweight note-taking solution. The pain-less way to create your meaningful notes. Your Notes, Your Way.
https://usememos.com
MIT License
34.14k stars 2.47k forks source link

/auth should redirect to index when already authenticated #3992

Closed xhocquet closed 3 weeks ago

xhocquet commented 1 month ago

Describe the bug

If the server detects a signed in user loading the page, I think it should redirect to the home page. That is typical in most web apps

Steps to reproduce

  1. Sign in to your account
  2. Go to .com/auth
  3. Notice the page remains, and you are able to sign in again or sign in to a different account

The version of Memos you're using.

v0.22.5

Screenshots or additional context

No response

monkeymatt0 commented 1 month ago

Hi @boojack and @xhocquet I would like to work on this, can I take it?

I already have an idea on how to do it