Middleware and navigateTo have weird behavior
Hello there, iam using Nuxt v3 and middleware for authentication. So iam trying to redirect a user from "a" url to url "b" when he is not authenticated. The url "a" gets appended with a query to url "b" for easy redirection. Unfornatley, my page (index.vue) has a
Note: The middleware is named: 02_auth.global.ts and there is 01_user.global.ts for user authentication
Any help is appreicated, thanks!
await useFetch for ssr, this useFetch throws an 401 errror not authenticated from my backend as an error. The whole problem is that the "navigateTo" does not navigate before the ssr throws that error, there is the sample code from the middleware:Note: The middleware is named: 02_auth.global.ts and there is 01_user.global.ts for user authentication
Any help is appreicated, thanks!
