Questions tagged [nuxt-middleware]

4 questions
2
votes
1 answer

Nuxt3 - accessing Vuex store from middleware?

How can I access a Vuex store from within a middleware? I know Nuxt3 suggests using Pinia, but I had problems installing/integrating it due to dependencies conflicts, so I used the ol' good Vuex. Problem is, in Nuxt3 my middleware has no access to…
fudo
  • 2,254
  • 4
  • 22
  • 44
0
votes
0 answers

Nuxt.js middleware not working properly (redirects when it shouldn't)

my middleware is not working properly, i have a firebase auth set up but when i go to route /manage even though im signed in, it redirects to /login route... can someone help me? So i want the middleware to redirect to route /manage if user is NOT…
russelhd
  • 17
  • 4
0
votes
0 answers

How can i have access vuex store in a nuxt 3 server middleware?

im currently working on integration a nuxt2 project into nuxt3 and in the nuxt2 project i had a middleware/single-use-token.ts file which contains something like this export default function (context: any): void { const { stuffFromServer1,…
Pietsen
  • 1
  • 1
0
votes
0 answers

How to access post request in the nuxt app

I am trying to access Post request body in my UI nuxt app So someone hit my url with the POST call with body, I can get that request body. I created middleware which gives console log when I try post call with…
app
  • 197
  • 8
  • 24