Тёмный

How To Use The Email Provider - Auth.js 

Brett Westwood - Software Engineer
Подписаться 8 тыс.
Просмотров 3,1 тыс.
50% 1

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

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 26   
@webdrizzled
@webdrizzled 2 месяца назад
Thanks Brother
@ekchills6948
@ekchills6948 6 месяцев назад
This is really smooth. Thanks for sharing Brett!
@brettwestwooddeveloper
@brettwestwooddeveloper 6 месяцев назад
Thank you for tuning in!
@bernardstein1651
@bernardstein1651 6 месяцев назад
Great explanation of the new changes from NextAuth to Auth.js
@brettwestwooddeveloper
@brettwestwooddeveloper 6 месяцев назад
Thank you Bernard!
@prashlovessamosa
@prashlovessamosa 6 месяцев назад
Thanks Brett.
@brettwestwooddeveloper
@brettwestwooddeveloper 6 месяцев назад
You are welcome!
@tahasheikh5038
@tahasheikh5038 Месяц назад
Is it possible to use Email Provider without Adapter? Can't it create a session just like Github or Google providers which maintain a session automatically without need of 4 different database tables?
@sandeepthakur4085
@sandeepthakur4085 6 месяцев назад
Great video sir, please make a video on credentials provider and oauth google using auth js v5🎉
@brettwestwooddeveloper
@brettwestwooddeveloper 6 месяцев назад
Will do!
@mcFishXtraMayo
@mcFishXtraMayo 6 месяцев назад
Thank you, very nice video! However it seems that the EmailProvider is not middleware compatible since it is using nodemailer. I thought about using an HTTP-based provider but typescript is complaining a lot... Not sure if it still works with v5... I'd be more than interested if you have a video (or an answer) that explains how to use an email provider with middleware 🙃🙃
@brettwestwooddeveloper
@brettwestwooddeveloper 6 месяцев назад
ummmm. Can you copy and paste the type error you are receiving?
@antoine8407
@antoine8407 3 месяца назад
@@brettwestwooddeveloper I got an 'EmailProvider' is deprecated too, and it tell me to use nodemailer
@brettwestwooddeveloper
@brettwestwooddeveloper 3 месяца назад
@@antoine8407 You must install the nodemailer package.
@itsreal23
@itsreal23 2 месяца назад
Did you ever figure this out? I had the same issue. I settled on the idea that nodemailer needs node and thereby, is not edge compatible and Middleware uses edge runtime by default.
@satvik0099
@satvik0099 6 месяцев назад
Your videos are awesome sir 🎉. But I don't have a domain to set up resend. Can we use an email provider without a domain name ? Please let me know
@brettwestwooddeveloper
@brettwestwooddeveloper 6 месяцев назад
yes you can, you will have to use the onboarding@resend.dev to send the email. I go over this specifically in the video
@dev-akeel
@dev-akeel 5 месяцев назад
Bro is this still in beta?
@brettwestwooddeveloper
@brettwestwooddeveloper 5 месяцев назад
yes the version 5 is
@gerkim3046
@gerkim3046 6 месяцев назад
it is called prism or prisma?
@brettwestwooddeveloper
@brettwestwooddeveloper 6 месяцев назад
prisma
@gerkim3046
@gerkim3046 6 месяцев назад
@@brettwestwooddeveloper the way you pronounce it makes me laugh
Далее
Set up Google OAuth with Next.js using Next-Auth!
21:00
Stripe Webhooks - The Ultimate Guide
29:04
Просмотров 2,6 тыс.
Lasagna Soup @Lionfield
00:35
Просмотров 10 млн
POLI зовет Газана
00:12
Просмотров 971 тыс.
40 APIs Every Developer Should Use (in 12 minutes)
12:23
Kinde: The Best Auth Solution Next.js 14
14:00
Просмотров 8 тыс.
What Is Email Only Authentication - Magic Link Auth
12:00
Send Emails with Next.js 13 - The Best & Easiest Way
16:10
I tried 8 different Postgres ORMs
9:46
Просмотров 390 тыс.