Rank 3: Container
in the initial stage of developing my app, i thot to handle the session in server-side only. then as the app have grown, i felt the need of client-side session as well (mainly for realtime connection). so i decided to maintain both client and server side sessions. for server-side i'm setting all the cookies and stuff, and everything there working quite perfectly. for client-side session, i'm just setting the cookieFallback value from X-Fallback-Cookies header in the localStorage. it was working perfectly.
but suddenly it stopped working. when i hit the /account route for getting the currently logged-in user, it says unauthorized now.
idk why it's happening. i'm not so sure which part of my code to even put here to debug this.
I also have tried comparing the X-Fallback-Cookies value i'm sending with every request from both client and server side. both are same
Stack: NextJS@14
Appwrite: Cloud
Login System: Email-Password
lemme know if u need more info