Mock Auth0 passwordless embedded login during Cypress test

I am using an Auth0 single page application with embedded login and passwordless authentication (magic link). This is linked to my React application. I’m working on implementing a Cypress end-to-end test which will allow me to either log in programmatically or mock Auth0 completely.

I have looked through multiple tutorials (Auth0 Authentication | Cypress Documentation, End-to-End Testing with Cypress and Auth0, Cypress 9.6.0: Easily test multi-domain workflows with cy.origin) but haven’t found anything relevant to embedded logins or passwordless. What changes should I make to the usual code for logging in with a password to make it work for passwordless?


Did you find a solution to this? I’m also looking at getting Cypress to work with passwordless Auth0.