I'm trying to test my Auth0 universal login page auth
I'm using remix.run and the flow goes like this:
1. A user visit the website
2. The user is being redirect to a login proxy
3. The user is getting csrf cookie
4. The login proxy redirect to auth0
Then I'm using cy.origin with Auth0 address and doing the login flow (email, password, hitting continue)
Once I'm logged in, I'm getting redirect from Auth0 back to our page which now needs to verify with the proxy that I'm logged in, using the csrf cookie
At this points my test fail since the cookie dones't exists, although when checkin in devtools it is there, so it seems its not being sent over the request or something between the redirects
Can someone shed a light on this one?
Or more generally about proxy and Auth0 tests
Thank you