Auth Session is being Null in Next JS Middleware
I am using Next 14 and wrote this simple middleware (taken from the documentation):
However, even with a session being available in the client side (I am able to check this from console logs) the session in the middleware is always being null. Honestly I have no idea what is wrong here since I followed the documentation for this and it's still not working. Any help would be gladly appreciated
However, even with a session being available in the client side (I am able to check this from console logs) the session in the middleware is always being null. Honestly I have no idea what is wrong here since I followed the documentation for this and it's still not working. Any help would be gladly appreciated