getSession not returning data in server middleware where you hit browser refresh
I am using a the piece of code below to obtain session data in my middleware to validate requests from the front end,
const session = await getSession(event, {
password: process.env.SESSION_PASSWORD
})
The code works fine when navigating from route to route, however when I hit the browser refresh the session data returned is empty. what coude the issue be.
0 Replies