GitHub Repo Link 👇
github.com/bwestwood11/verifi...
Join our Discord server to interact with other developers 👇
/ discord
In this video, I teach you how to create a verification token so you can send it to the user after they register for an account.
This will allow them to verify their email by clicking the link we send them which in turn will allow them to login.
We will be using Next.js 14, Auth.js v5, Resend, MongoDB, Prisma, Shadcn & Tailwind.
Documentation Pages
Auth.js 👇
authjs.dev/getting-started/mi...
Prisma 👇
www.prisma.io/docs/getting-st...
Next.js 👇
nextjs.org/docs
Resend 👇
resend.com/docs/send-with-nextjs
Timestamps
0:00 Intro
0:45 Overview of the UI
1:40 Overview of Configuring Auth.js
7:32 Create a model in Prisma Schema file
10:56 Generate a Verification Token
22:35 Send Email with Verification Token and Resend
35:52 Verifying the Token when they click link in email
50:40 Creating Logic if they should be able to login or not
56:25 Retrieving the session object from Auth.js
58:12 Outro
23 июл 2024