We will be looking at how to setup authentication in your next.js application using the open-source library known as NextAuth.js
This library is a pleasure to use and really makes setting up authentication in your next.js application a breeze.
In this video we are going to look at how to install and setup the library, as well setting up the Email passwordless provider which I believe is the next generation of authentication. We will also be configuring prisma and its adapter as our database solution for the authentication.
Starter project github: github.com/leoroese/nextauth-...
Timestamps:
0:00 Intro
2:00 install library
4:40 Prisma adapter
9:00 smtp gmail
13:00 nextAuth setup
26:00 getToken
28:00 protected route
29:00 serverside rendered
4 июл 2024