Integration tests : how to get a JWT on a user's behalf ? #112
Unanswered
JesusTheHun
asked this question in
Q&A
Replies: 0 comments
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.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to test the integration of Ory into my backend.
I have a SPA that connects to a Node.js app and authenticate the users using OAuth2.
So I'm trying to mimic the users's flow. I'm not using something like Playwright on purpose, to completely isolate the tests over the backend.
The
fetchfails because of a CSRF issue.I have a tunnel opened with :
ory tunnel --dev --project <project_slug> --port 1000andappConfig.ORY_PROJECT_API_ENDPOINTis set tohttp://localhost:1000.Beta Was this translation helpful? Give feedback.
All reactions