Skip to main content

Community resources

These tutorials are contributed by the community. New submissions and edits are welcome!

Basics​

Introduction to Auth.js YouTube​

  • This is an introductory video to Auth.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.

Authentication patterns for Next.js 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.

Adding Authentication to an existing Next.js Application in no time! ​

  • This tutorial walks one through adding Auth.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.

How to Authenticate Next.js Apps with Twitter & Auth.js External ​

  • Learn how to add Twitter authentication and login to a Next.js app both client-side and server-side with Auth.js.

NextJS Authentication Crash Course with Auth.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.

Create your own Auth.js Login Pages YouTube​

  • This tutorial shows you how to jump in and create your own custom login pages versus using the ones provided by Auth.js

Passwordless Authentication with next-auth YouTube​

  • A video tutorial by Xiaoru Li from Prisma.

How to authenticate Next.js Apps with Sign-In With Ethereum (SIWE) & Auth.js 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

Next.js Authentication with Okta and Auth.js 4.0 External ​

  • Learn how to perform authentication with an OIDC Application in Okta and Auth.js.

Fullstack​

Passwordless Authentication with Next.js, Prisma, and next-auth ​

  • 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.

Fullstack Authentication Example with Next.js and Auth.js External ​

  • This example shows how to implement a full-stack app in TypeScript with Next.js using Prisma Client as a backend. It also demonstrates how to implement authentication using Auth.js. By Nikolas Burk at Prisma.

Advanced​

Add auth support to a Next.js app with a custom backend External ​

  • A tutorial by Arunoda Susirpiala.

How to Configure Azure AD B2C Authentication with Next.js 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 Auth.js library. By Ben Fox.

Sign in with Apple in NextJS External ​

  • This tutorial walks step by step on how to get sign in with Apple working (both locally and on a deployed website) using Auth.js.
  • Learn how to use Magic.Link authentication with Auth.js to enable passwordless authentication without a database.

Database​

Create a Auth.js Custom Adapter with HarperDB & Next.js External ​

Using Auth.js with Prisma and PlanetScale serverless databases External ​

  • How to set up a PlanetScale database to fetch and store user / account data with the Prisma adapter.