Skip to content

daoodaba975/supabase.auth

Repository files navigation

Next Supabase Auth 🔐

This is a simple example of how to use the Next with Supabase for Auth.
Supabase is the Open Source alternative to Firebase.

What you can do with this example :

  • users can sign in with magic links

Getting Started

Add Supabase API URL & ANON Key to the .env.local file :

NEXT_PUBLIC_SUPABASE_URL = "YOUR_SUPABASE_URL"
NEXT_PUBLIC_SUPABASE_ANON_KEY = "YOUR_SUPABASE_ANON_KEY"

Install dependencies :

npm install
# or
yarn install

Run the development server :

npm run dev
# or
yarn dev

Open http://localhost:3000 with your browser to see the result.

More

Supabase & Next.js guide
Supabase docs

About

🔐 An example of using Next with Supabase for authentication.

Topics

Resources

Stars

Watchers

Forks