Sample project showing how to add authentication to Next.js 13+ using Supabase Auth and the App Router with React Server Components.
This project is a supplement to this guide. See the link for a detailed tutorial.
Note The
main
branch is using the latest version of Auth Helpers with the Proof Key for Code Exchange (PKCE) flow. If you are looking for the older version (using Auth Helpers0.6.1
or earlier) see thev2
branch.
This repo is meant to be an example only. Please feel free to fork it and make it your own.