#No I don't use any library, I have
1 messages · Page 1 of 1 (latest)
The userData returned my your authService, are they present in the request headers?
Have you looked up the AxiosError message online?
userData is return of post request, I return id,roles, email and access token, refreshToken() sends request with cookie that contains token to get new jwt access token
there is probably something with how middleware works https://www.reddit.com/r/nextjs/comments/tx1pcp/using_axios_in_middleware_not_working/
hmm.
Oww. edge runtime
I'm sure there's a way to make this work. I once read an article where the writer moved authjs out of the middleware since is dosn't support edge runtime. If only i can find it
thank you I'll try to find something on this topic