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.
- Please setup a supabase account first. Supabase.
- Download this repository and put it where you like.
- In the project folder install the dependencies.
# npm
npm install
- 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.
- In your supabase project under "authentication -> URL Configuration", change the url to:
http://localhost:3000/confirm
- Start the development server on
http://localhost:3000
:
# npm
npm run dev
These routes are available in the project.
# home
/
# login
/login
# register
/register
# dashboard (protected)
/dashboard