Easy way to get 15 free YouTube views, likes and subscribers
Get Free YouTube Subscribers, Views and Likes

Full Course - How to set up Email Authentication + Google OAuth in Next.js 14

Follow
Jackson Zheng

In this video, I will be showing you how to set up authentication in Next.js using NextAuth v5 and postgres.

Code: https://github.com/JacksonZ03/authjs...

Chapters:
0:00 Intro
0:27 Creating a new Next.js project
2:51 Difference between NextAuth vs Auth.js
4:00 Install the rest of the packages
5:04 Setting up the postgres database
12:28 Environment variables
20:49 Creating a blank Home page
22:56 Creating a blank Signin page and Dashboard page
27:40 Creating the Sign in and sign out buttons
43:38 Configuring NextAuth and adding functionality to buttons
59:10 Setting up Email Magic Links
1:08:21 Automatic database cleanup function
1:10:58 Link/Unlink Google Account
1:18:56 Displaying and changing username
1:25:24 Role Based Access Control

Help this channel grow by supporting me on Patreon:
  / jacksonzheng  

posted by Nicolorozb