View on GitHub

examples

Email testing and SMS verification examples using MailSlurp and a wide range of frameworks.

Next.js Auth magic link example

Example project demonstrating end-to-end testing of next-auth email access links using Playwright and MailSlurp.

Setup from scratch

Following the NextAuth email guide:

npm install --save next next-auth nodemailer mailslurp-client

Email provider requires a database, let’s use sequelize:

npm install --save sequelize sqlite3 @auth/sequelize-adapter

For testing:

npm install --save-dev playwright