We go over how to use the email provider inside of auth.js or better known as next auth.
The email provider uses email to send a magic link to a user so they can sign in and also creates an account in your database.
Github Repo 👇
github.com/bwestwood11/email-...
Join my FREE Discord to talk and network about web development! 👇
/ discord
The email provider lets the user sign up with only an email address. No credentials needed.
Next Auth has released a version 5 beta in December of 2023 which is the version we are using in this tutorial.
We will be using MongoDB, Prisma ORM, Resend, Auth.js, Next.js 14, TailwindCSS and shadcnUI.
Time Stamps
0:00 Intro
1:25 Demo
2:26 Create Next.js 14 Project
3:15 Configuring Auth.js/Email Provider
11:42 Setup Prisma ORM & MongoDB
20:18 Setup Resend Email
30:27 Testing Out The Email Provider
34:10 Showing the Code for Custom Sign-In
37:48 Outro
8 июл 2024