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