Skip to content

A little template to get started with nuxt and supabase auth.

Notifications You must be signed in to change notification settings

mazzelman/nuxt-supabase-auth

Repository files navigation

Nuxt 3 with supabase auth

This is a little template to get started with nuxt 3 and supabase auth.
With this template you can register an user with email and password.
You can login to the dashboard and logout from the dashboard.

Setup

  1. Please setup a supabase account first. Supabase.
  2. Download this repository and put it where you like.
  3. In the project folder install the dependencies.
# npm
npm install
  1. Then use the .env.example file and rename it to .env and put in the "SUPABASE_URL" and the "SUPABASE_KEY". You can get these values in the supabase dashboard, when you created a new project.
  2. In your supabase project under "authentication -> URL Configuration", change the url to:
http://localhost:3000/confirm
  1. Start the development server on http://localhost:3000:
# npm
npm run dev

Routes

These routes are available in the project.

# home
/

# login
/login

# register
/register

# dashboard (protected)
/dashboard

About

A little template to get started with nuxt and supabase auth.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published