How to Intercept auth() Handler in MSW for Mocking Server Session #9576
Unanswered
Rikard-Johansson97
asked this question in
Help
Replies: 2 comments 2 replies
-
could you fix it? I'm trying to do the same |
Beta Was this translation helpful? Give feedback.
2 replies
-
Hi @Rikard-Johansson97 I'm looking into something similar currently. Did you find a good solution? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
How to Intercept
auth()
Handler in MSW for Mocking Server SessionHello,
I'm currently working on a project where I'm using Mock Service Worker (MSW) to handle API mocking. I've set up my server and handlers as follows:
Could anyone guide me on how to approach this problem? Specifically, I'm looking for a way to:
Intercept the auth() handler within MSW.
Mock the server session effectively after intercepting this handler.
Beta Was this translation helpful? Give feedback.
All reactions