NuxtN
Nuxt5mo ago
4 replies
Evascene_void

Nuxt 3 passing data from server middleware to app middleware

I have a situation where I am verifying jwt token so if it is verified then i want to send Boolean value so i do certain condition, vice-versa.
Passing via cookies is the only way or we can use event.context.isverified as Boolean in server middleware and get its value in app middleware as useState('isVerfied' () => false)
I tried the useState but the value doesn't get reflected.
Both middleware are global middleware
Was this page helpful?