NADEE-MJ / peppermint

MIT License
0 stars 2 forks source link

[BUG] stop using svelte stores in server load functions, causing an issue with login #90

Closed NADEE-MJ closed 1 year ago

NADEE-MJ commented 1 year ago

What is the expected behavior?

when I click login from the landing page with an access token in my cookies it should log me into my account if it is a valid token

What is the actual behavior?

logins me in to the previous users account since it loads the userStore value from the server.

To Reproduce

Steps to reproduce(STR) the behavior:

  1. create two accounts
  2. login on one browser with account 1
  3. close browser savings cookies in storage
  4. login to second account on second browser
  5. open first browser again with saved cookie from the first user and try to hit login page, should redirect you to profile page with the userStore data from the second user
NADEE-MJ commented 1 year ago

solved via #102