salchum / nextjs-supabase-auth-boilerplate

Starter for setting up Supabase Auth in Next.js

Home Page:https://misha.wtf/blog/supabase-auth-next-13

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Next.js + Supabase Auth

Next.js Supabase

Banner image

Overview

Sample project showing how to add authentication to Next.js 13+ using Supabase Auth and the new app directory.

NOTE: app directory is stable as of Next 13.4

This project is a supplement to this guide. See the link for a detailed tutorial.

Supabase Setup

  1. Create user for Authentication, open Authentication then Users
  2. Choose Add Users then Create New User
  3. Fill Email Address and Password
  4. Check Auto Confirm User then click Create User

Project Setup

  1. Create file .env.local
touch .env.local.
  1. Fill environtment variable in .env.local
NEXT_PUBLIC_SUPABASE_URL=
NEXT_PUBLIC_SUPABASE_ANON_KEY=

About

Starter for setting up Supabase Auth in Next.js

https://misha.wtf/blog/supabase-auth-next-13

License:MIT License


Languages

Language:JavaScript 99.9%Language:CSS 0.1%