Back

How to check authentication in middleware nextJs

  • 0
  • Web
👾Rnbsov
6 Aug, 2024, 08:42

the problem is that fallbackCookie is in localstorage not in cookies

TL;DR
Developers are discussing how to check authentication in middleware in Next.js and debating storing values in cookies upon login and logout. The issue is that the fallbackCookie is in localStorage instead of cookies.
👾Rnbsov
6 Aug, 2024, 08:42

How to check authentication in middleware nextJs

👾Rnbsov
6 Aug, 2024, 08:48

is it good idea to store some value in cookie on login, and remove it on log out

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more