How can I test my protected routes using the dev provider? #177
Unanswered
jamesbalcombe83
asked this question in
Q&A
Replies: 1 comment
-
Please see remark42 for example: construction of auth service here and here, set up of the handlers, protecting routes with that auth module. Here is how it looks like in the frontend. |
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
-
I hope someone can help. I want to write some tests for my protected routes, so I assume I need to use the dev provider in some way, but it's not clear to me what the process would look like in the test.
I've added the
dev
provider to the auth service in my router, and added the code to run thedevAuthServer
in a go routine before my routes, but what request should I make inside of the test? I suppose that the authorize route needs to be called somehow?Beta Was this translation helpful? Give feedback.
All reactions