Setup
NPM
npm i -D supauthNuxt Config
nuxt.config.ts
export default defineNuxtConfig({ extends: ['supauth'],})Environment Variables
To start using this layer, just follow the setup instructions and create a .env file with your Supabase credentials:
To find them, go to Settings > API in your project's dashboard and copy the value of
URL and the value of Anon Public..env
# SupabaseSUPABASE_KEY=your-supabase-anon-keySUPABASE_URL=https://your-project-id.supabase.coThen, you can run your project and go to /login to sign in or /register to create a new user.
Since this layer is using the
@nuxtjs/supabase module, you can of course use all the functions and utilities coming from that module (useSupabaseClient, useSupabaseUser, etc).Table of Contents