edge / account

Account portal for managing Edge services
Other
3 stars 1 forks source link

Log out of current session when opening magic link #208

Closed willgarrett64 closed 1 year ago

willgarrett64 commented 1 year ago

It's an uncommon scenario as you'd need two accounts.

Steps: 1) Attempt log in with email (request magic link) for account A (but do NOT open link) 2) Log in with account B 3) Return to magic link from step 1 and open link 4) New tab is opened, but logged in as account A still

The reason this happens is because the local storage session check occurs prior to the magic link check. This needs to be flipped, possibly even offering the user the change to stay logged in as A or switch to B.