Open LLCampos opened 3 months ago
Hi @LLCampos . I checked and it's probably caused by redirects
Here's what next-auth
v4 does:
And here's how we handle it in 0.8: https://github.com/sidebase/nuxt-auth/blob/9295d1fe4f27d42c879862a48202f5b215fc0048/src/runtime/server/services/authjs/nuxtAuthHandler.ts#L171-L176
So, the body with url
is only returned when next-auth
returns a body with JSON, thus probably making the problem inconsistent for you.
Since we are working on a revamp of authjs
in #818, it might be the case that this problem is solved there. Please keep an eye out on a new release to see if it helps.
Environment
Reproduction
This is a non-deterministic problem. Not able to reproduce it consistently.
Describe the bug
We've been non-deterministically been getting the error
TypeError: undefined is not an object (evaluating 'o.url')
/TypeError: o is undefined
The source maps tell me that the error is happening here.
So it seems that somehow
signoutData
might be undefined at this point?Additional context
TypeError: NetworkError when attempting to fetch resource.
I'll add more context here if I find anything new.
Logs
No response