# Supabase Integration For Nuxt

> 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](https://supabase.com/docs/learn/auth-deep-dive/auth-row-level-security){rel="&#x22;nofollow&#x22;"} implemented in Supabase. If you want to bypass policies, you can use the [serverSupabaseServiceRole](https://supabase.nuxtjs.org/services/serversupabaseservicerole).

- Skill: `hk-vk/supabase-integration-for-nuxt` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx get-skill add hk-vk/supabase-integration-for-nuxt`
- Raw SKILL.md: https://api.skillmd.com/api/skills/hk-vk/supabase-integration-for-nuxt/raw
- Safety review: pending (external: skill-scanner PASS, skillspector CAUTION)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Security
- Author: hk-vk (https://skillmd.com/u/hk-vk)
- Updated: 2026-11-11
- Page: https://skillmd.com/skills/hk-vk/supabase-integration-for-nuxt

---


# Supabase Integration for Nuxt

> 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](https://supabase.com/docs/learn/auth-deep-dive/auth-row-level-security){rel="&#x22;nofollow&#x22;"} implemented in Supabase. If you want to bypass policies, you can use the [serverSupabaseServiceRole](https://supabase.nuxtjs.org/services/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](https://supabase.com/docs/learn/auth-deep-dive/auth-row-level-security){rel="&#x22;nofollow&#x22;"} implemented in Supabase. If you want to bypass policies, you can use the [serverSupabaseServiceRole](https://supabase.nuxtjs.org/services/serversupabaseservicerole).

## Available Resources

### Installation

### Options

- **signIn method**
  - URL: https://supabase.com/docs/reference/javascript/auth-signinwithoauth

- **`useSupabaseCookieRedirect`**
  - URL: https://supabase.nuxtjs.org/composables/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()**
  - URL: https://supabase.com/docs/reference/javascript/auth-getuser

- **auth.getClaims()**
  - URL: https://supabase.com/docs/reference/javascript/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.
