Ironman
Ironman
NNuxt
Created by Ironman on 4/12/2024 in #❓・help
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.
1 replies