Hello, I'm currently developing a ReactJS applica...
# support-questions-legacy
s
Hello, I'm currently developing a ReactJS application and utilizing the SuperTokens SDK for authentication. My application's primary authentication method involves magic links. I'm now looking to integrate end-to-end (E2E) testing using Cypress. Given the nature of magic link authentication, which typically requires access to an email to retrieve the authentication link, I'm facing a challenge in automating this process for testing purposes. I'm seeking a solution that would allow me to bypass or simulate the magic link authentication step within my E2E tests. Specifically, I'm wondering if there's a way to either: Simulate the authentication process without the need to access an email, perhaps by using a flag or a mock authentication method that SuperTokens supports for testing environments. Any alternative approaches recommended for testing applications with magic link authentication, ensuring a seamless integration with Cypress. I'm looking for best practices or guidance on how to effectively automate my E2E tests without compromising the authentication flow's integrity. Any insights, documentation references, or examples from those who have tackled similar challenges would be greatly appreciated. Thank you in advance for your assistance!
7 Views