N
Nuxt8mo ago
Ironman

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
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server