v4 incompatible with msw (mock service worker) #3757
-
Description 🐜I have a project that relies on msw to mock api responses of a 3rd party service. This was working fine, but after upgrading to next-auth@4 im getting this error. I will open an Issue there as well and keep both issues updated with information as I am going to digg into this myself as well. Is this a bug in your own project?No How to reproduce ☕️I have created this example it is basically your typescript example & 1 commit that adds msw (On my machine my cache played pranks on me, so the bug actually did not occur sometimes. In that case it helped to delete cache and reaload) Screenshots / Logs 📽
Environment 🖥
Contributing 🙌🏽Yes, I am willing to help solve this bug in a PR |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
We use
make sure you read the docs on the REST API https://next-auth.js.org/getting-started/rest-api if you still have questions, let me know. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the response :) Anyway, my concern is, that my exact msw setup was working in v3 but not in v4. I would appreciate if you could have a look into my example. Regardign the REST API docs: Im confused about how it would help me with the issue. Did you have something specific in mind? |
Beta Was this translation helpful? Give feedback.
-
Similar discussion in the msw repo: mswjs/msw#1079 |
Beta Was this translation helpful? Give feedback.
Similar discussion in the msw repo: mswjs/msw#1079