Supabase Integration for Nuxt
The client is initialized with the
NUXT_PUBLIC_SUPABASE_KEYyou must have in your.envfile. It establishes the connection with the database and make use of user JWT to apply RLS Policies{rel=""nofollow""} implemented in Supabase. If you want to bypass policies, you can use the serverSupabaseServiceRole.
The client is initialized with the NUXT_PUBLIC_SUPABASE_KEY you must have in your .env file. It establishes the connection with the database and make use of user JWT to apply RLS Policies{rel=""nofollow""} implemented in Supabase. If you want to bypass policies, you can use the serverSupabaseServiceRole.
Available Resources
Installation
Options
signIn method
useSupabaseCookieRedirect
Demo
Log-in page - /login
Confirm page - /confirm
Reset Password
Live demo
Running locally
Source code
🔐 What are JWT Signing Keys?
🚨 Breaking changes
auth.getUser()
auth.getClaims()
📋 Migration Steps
Authentication
Database Request
Realtime
Typescript
Usage
Return Values
Manual Usage
Auth middleware
Auth middleware
::u-page-hero
orientation: horizontal
:::u-button
size: xl
to: https://supabase.nuxtjs.org/getting-started/introduction trailing-icon: i-lucide-arrow-right
:::u-button
color: neutral
icon: i-lucide-star size: xl target: _blank to: https://github.com/nuxt-modules/supabase variant: subtle
:::u-button
size: sm
to: https://supabase.nuxtjs.org/getting-started/migration variant: outline
:::u-page-feature
icon: i-simple-icons-nuxtdotjs
target: _blank to: https://nuxt.com
:::u-page-feature
icon: i-simple-icons-vuedotjs
target: _blank to: https://vuejs.org/guide/reusability/composables.html
:::u-page-feature
icon: i-simple-icons-supabase
target: _blank to: https://supabase.com
:::u-page-feature
icon: i-lucide-server
to: https://supabase.nuxtjs.org/services/serversupabaseclient
:::u-page-feature
icon: i-lucide-key
to: https://supabase.nuxtjs.org/getting-started/authentication
:::u-page-feature
icon: i-simple-icons-typescript
target: _blank to: https://www.typescriptlang.org
How to Use This Skill
Reference these resources when working with Supabase Integration for Nuxt.