We’re trying to write E2E tests with Cypress, however the Cypress has issues with authorizing with auth0 because the domain changes.
We’re trying to find a way to bypass our custom oauth service (which authenticates with auth0) if the magic credentials are included in a request in the test environment. Ideally the ‘magic’ happens on the server, and does not happen in production.
Does anyone have a simple way to do this? Some searching came up with intercepting the outgoing oauth requests, however we only want to allow two or three users (seeded into the db) the ability to login an establish a session.