Rank 1: Thread
when i'm logging in and creating email session from client web sdk, it logs in user and creates and assigns cookie in cookie tab in developer tools, and also a fallback cookie in localstorage,
but when i refresh the cookie from cookie tab vanishes, may i know why is that? also the localStorage fallback cookie is still there (because session is not deleted yet, i.e, logout)
i'm trying to use middleware.js in next js to intercept the reqeust, if user manually changes the url, i need to redirect user, but since cookie vanishes from cookies tab i dont know how to achieve this?
please help