Skip to main content

Prerequisites

Before you start, you’ll need:

Guide

1

Install

Install the NextAuth package.
Then, install the Nodemailer package.
2

Configure SMTP credentials

Add your Resend SMTP crendentials in your application’s .env file:
.env
3

Configure Email Provider

Finally, in your […nextauth].js file (typically located in pages/api/auth), configure the Email provider with your SMTP settings:
index.ts