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.
- Create user for Authentication, open
Authentication
thenUsers
- Choose
Add Users
thenCreate New User
- Fill
Email Address
andPassword
- Check
Auto Confirm User
then clickCreate User
- Create file
.env.local
touch .env.local.
- Fill environtment variable in
.env.local
NEXT_PUBLIC_SUPABASE_URL=
NEXT_PUBLIC_SUPABASE_ANON_KEY=