Source: https://next-auth.js.org/tutorials
Skip to main content
š NextAuth.js is now part of Better Auth
!
Version: v4
On this page
These tutorials are contributed by the community. Unless otherwise indicated, tutorials are hosted on this site. External and video based tutorials are denoted with the appropriate icons.
New submissions and edits are welcome!
Basicsā
YouTubeā
- This is an introductory video to NextAuth.js for beginners. In this video, it is explained how to set up authentication in a few easy steps and add different configurations to make it more robust and secure.
External ā
- Next.js supports multiple patterns for authentication, each designed for different use cases. This guide will allow you to choose your adventure based on your constraints. By Lee Robinson.
ā
- This tutorial walks one through adding NextAuth.js to an existing project. Including setting up the OAuth client id and secret, adding the API routes for authentication, protecting pages and API routes behind that authentication, etc.
External ā
- Learn how to add Twitter authentication and login to a Next.js app both clientside and serverside with NextAuth.js.
YouTubeā
- This tutorial dives into the ins and outs of NextAuth, including using the Email, Github, Twitter and Auth0 providers in under an hour.
YouTubeā
- This tutorial shows you how to jump in and create your own custom login pages versus using the ones provided by NextAuth.js
YouTubeā
- A video tutorial by Xiaoru Li from Prisma.
External ā
- Learn how to use Sign-In With Ethereum to authenticate your users with their existing Ethereum wallets - identifiers they personally control.
- Example application: spruceid/siwe-next-auth-example
External ā
- Learn how to perform authentication with an OIDC Application in Okta and NextAuth.js.
Fullstackā
External ā
Learn how to implement passwordless/magic link authentication with database storage in your Next.js projects using NextAuth and Fauna DB.
The final version of the project's code can be found on Github
. You can use it as a starting point for any Next.js app that requires passwordless authentication.
This tutorial covers:
- Configuring Next.js, NextAuth.js, and Fauna to work together seamlessly
- Using Next.js dynamic API routes to handle authentication requests
- Using Fauna and the Fauna Adapter for
next-auth to persist users, email sign in tokens, and sessions
- Creating custom login and confirmation pages with React + Tailwind CSS
- Customizing the sign-in email and sending a welcome email to new users
ā
- In this post, you'll learn how to add passwordless authentication to your Next.js app using Prisma and next-auth. By the end of this tutorial, your users will be able to log in to your app with either their GitHub account or a Slack-styled magic link sent right to their Email inbox. By Xiaoru Li.
Advancedā
External ā
- A tutorial by Arunoda Susirpiala.
External ā
- Configuring authentication with Azure B2C in Next.js is not a particularly straight forward process. We'll look at how to facilitate this using the NextAuth.js library. By Ben Fox.
External ā
- This tutorial walks step by step on how to get sign in with Apple working (both locally and on a deployed website) using NextAuth.js.
ā
- Learn how to use Magic.Link
authentication with NextAuth.js
to enable passwordless authentication without a database.
Databaseā
External ā
External ā