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
-
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
fetch
fails because of a CSRF issue.I have a tunnel opened with :
ory tunnel --dev --project <project_slug> --port 1000
andappConfig.ORY_PROJECT_API_ENDPOINT
is set tohttp://localhost:1000
.Beta Was this translation helpful? Give feedback.
All reactions