In this video we’ll se NextAuth.js to easily add authentication to our Next.js application. We cover the GitHub provider, starting out without a database using JWT only, and later integrating Prisma 2 to store our users and their sessions in a database.

---------- Links

NextAuth.js - https://next-auth.js.org/
Source Code - https://github.com/leighhalliday/next-auth-demo
JWT - https://jwt.io/
Prisma - https://www.prisma.io/

---------- Timeline

  • 00:00 - Introduction
  • 00:48 - KwesForms
  • 01:38 - Overview of Next.js App
  • 03:25 - Adding GitHub Provider
  • 10:15 - Inspecting Auth/JWT Cookies
  • 11:40 - Frontend Auth Integration
  • 19:25 - Prisma Auth Integration
  • 27:00 - Review

#next #react #security #jwt #prisma

Adding Authentication to Next.js (GitHub Connect, JWT + Prisma 2 Integration)
20.55 GEEK