Next.js App Router
/

Learn how to build a SaaS with Next.js App Router and Supabase

Authentication

Let's implement authentication for our SaaS using Supabase Auth.

Reading Time: 79 minutes

If you have followed the previous lessons, by now you have both Next.js and Supabase set up and running. In this lesson, we will implement authentication for our SaaS using Supabase Auth.

Supabase Auth is built on top of GoTrue, an auth library open-sourced by Netlify. Supabase has adopted GoTrue and added some additional features to it, improving its functionality and making it easier to use using server-side applications.

Supabase Authentication

Before we start, let's take a look at the authentication features that Supabase Auth provides. Supabase Auth allows you to build an authentication system that uses several methods of authentication, such as:

  1. Email/Password
  2. Magic L ...