pbteja1998 / remix-auth-email-link

MIT License
92 stars 22 forks source link

User is not immediately authenticated after using magic link #5

Closed pawelblaszczyk5 closed 2 years ago

pawelblaszczyk5 commented 2 years ago

Hello, I'm using the email link strategy, my setup is nearly identical to the one from readme. Sometimes, user isn't immediately authenticated after visiting magic link. In magic route I'm redirecting him to authorization protected page, and then he is redirected back to login because he isn't yet authenticated. After refresh everything works and he is redirected out from login page.

These are logs from my express server: image

As you can see, user is successfully redirected to /me, but then authorization fails and redirect to /login kicks in.

Repository: https://github.com/pawelblaszczyk5/planotes Live: https://planotes.onrender.com/

pawelblaszczyk5 commented 2 years ago

Okay, sorry for inconvenience, it turned out it's my fault, and it's not even related to this package. SameSite: strict setting messed that up :D