Hi. Just chiming in now as I’m starting to use Cypress now.
@konrad.sopala - the solution in this thread is not an actual solution imo. It does numerous things that go against best practices that both Auth0 and Cypress recommend. The point of using Auth0 is to have top-notch security… lowering the level of security (by disabling protections against malicious attacks in Auth0) in order to properly test an application should not be acceptable.
The point of this blog post was to provide a manner in which to securely test an Auth0 authenticated SPA with Cypress. This blog post seems to be outdated. I followed everything exactly as per the guide, and tried debugging this on my own with a variety of ideas for an hour or two now. I started with something along the lines of what @corruptedmonk suggested until realizing that it went against both Cypress and Auth0 best practices. Then I found this guide, and was disappointed that it isn’t current.
And not only that… based off of everything everybody else is saying, even if I was able to get my
access_token, etc. back (which I can’t - right now I’m just being redirected to
auth0.com and getting the
html for that page back) - this wouldn’t even work with the library that you ask everybody working with an SPA to use.