/supabase:auth-configsfrom supabase
Configure Supabase authentication including OAuth providers (Google, GitHub, Discord), JWT settings, email auth with PKCE, and auth middleware for Next.js applications.
Ships in supabase. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
This skill provides complete authentication configuration for Supabase-powered AI applications. It covers OAuth provider setup, JWT configuration, email authentication with PKCE flow, and auth middleware templates.
Configure social login providers for your Supabase project:
Supported Providers:
Setup Process:
# Configure OAuth provider (creates config, provides setup instructions)
bash /home/vanman2025/Projects/ai-dev-marketplace/plugins/supabase/skills/auth-configs/scripts/setup-oauth-provider.sh google
# Or use template directly
cat /home/vanman2025/Projects/ai-dev-marketplace/plugins/supabase/skills/auth-configs/templates/oauth-providers/google-oauth-config.json
Provider Setup Steps:
Configure JSON Web Token settings for secure session management:
# Set up JWT signing secrets and configuration
bash /home/vanman2025/Projects/ai-dev-marketplace/plugins/supabase/skills/auth-configs/scripts/configure-jwt.sh
JWT Settings:
Configure secure email authentication for server-side rendering:
# Set up email auth with PKCE flow for SSR applications
bash /home/vanman2025/Projects/ai-dev-marketplace/plugins/supabase/skills/auth-configs/scripts/setup-email-auth.sh
Email Auth Features:
Use pre-built middleware templates for Next.js and other frameworks:
Next.js Middleware:
// Copy template and customize
cp /home/vanman2025/Projects/ai-dev-marketplace/plugins/supabase/skills/auth-configs/templates/middleware/auth-middleware.ts ./middleware.ts
Auth Helper Functions:
// Reusable auth utilities
cp /home/vanman2025/Projects/ai-dev-marketplace/plugins/supabase/skills/auth-configs/templates/helpers/auth-helpers.ts ./lib/auth.ts
Validate your authentication setup end-to-end:
# Test all configured auth flows
bash /home/vanman2025/Projects/ai-dev-marketplace/plugins/supabase/skills/auth-configs/scripts/test-auth-flow.sh
Tests Include:
# 1. Run OAuth setup script
bash /home/vanman2025/Projects/ai-dev-marketplace/plugins/supabase/skills/auth-configs/scripts/setup-oauth-provider.sh google
# 2. Follow prompts to configure:
# - Google Cloud Console OAuth app
# - Authorized redirect URIs
# - Client credentials in Supabase
# 3. Add middleware to Next.js app
cp /home/vanman2025/Projects/ai-dev-marketplace/plugins/supabase/skills/auth-configs/templates/middleware/auth-middleware.ts ./middleware.ts
# 4. Test the flow
bash /home/vanman2025/Projects/ai-dev-marketplace/plugins/supabase/skills/auth-configs/scripts/test-auth-flow.sh
Result: Fully configured Google OAuth with protected routes and session management
Configure multiple OAuth providers for user choice:
# Set up Google, GitHub, and Discord
for provider in google github discord; do
bash /home/vanman2025/Projects/ai-dev-marketplace/plugins/supabase/skills/auth-configs/scripts/setup-oauth-provider.sh $provider
done
# Configure email auth as fallback
bash /home/vanman2025/Projects/ai-dev-marketplace/plugins/supabase/skills/auth-configs/scripts/setup-email-auth.sh
# Test all providers
bash /home/vanman2025/Projects/ai-dev-marketplace/plugins/supabase/skills/auth-configs/scripts/test-auth-flow.sh --all
Result: Users can sign in with Google, GitHub, Discord, or email
Configure JWT claims for AI model access control:
# 1. Set up JWT with custom claims
bash /home/vanman2025/Projects/ai-dev-marketplace/plugins/supabase/skills/auth-configs/scripts/configure-jwt.sh
# 2. Add role-based middleware
# Edit middleware.ts to check JWT claims for AI model permissions
# 3. Configure RLS policies in Supabase
# Link JWT claims to database row-level security
Result: Different user tiers (free, pro, enterprise) with model access control
Environment Variables:
SUPABASE_URL - Your Supabase project URLSUPABASE_ANON_KEY - Public anonymous keySUPABASE_SERVICE_ROLE_KEY - Service role key (for admin operations)Dependencies:
@supabase/supabase-js - Supabase JavaScript client@supabase/ssr - Server-side rendering support (replaces deprecated auth-helpers)Supabase Project Setup:
For OAuth Providers:
Multi-User AI Chat:
RAG Systems:
AI API Platforms:
Never Hardcode Secrets:
# ✅ CORRECT - Use environment variables
export GOOGLE_CLIENT_SECRET="your-secret-here"
# ❌ WRONG - Never commit secrets
const secret = "GOCSPX-abc123..." // DON'T DO THIS
Use PKCE Flow for SSR:
Validate Redirect URLs:
Rotate JWT Secrets:
Plugin: supabase Version: 1.0.0 Category: Authentication Skill Type: Configuration
README.md (opens in a new tab)examples/ai-app-patterns.md (opens in a new tab)examples/auth-flows.md (opens in a new tab)examples/oauth-setup-guide.md (opens in a new tab)scripts/configure-jwt.sh (opens in a new tab)scripts/setup-email-auth.sh (opens in a new tab)scripts/setup-oauth-provider.sh (opens in a new tab)scripts/test-auth-flow.sh (opens in a new tab)templates/email-templates/confirmation.html (opens in a new tab)templates/email-templates/invite.html (opens in a new tab)templates/email-templates/magic-link.html (opens in a new tab)templates/email-templates/password-reset.html (opens in a new tab)templates/helpers/auth-helpers.ts (opens in a new tab)templates/middleware/auth-middleware.ts (opens in a new tab)templates/oauth-providers/discord-oauth-config.json (opens in a new tab)templates/oauth-providers/github-oauth-config.json (opens in a new tab)templates/oauth-providers/google-oauth-config.json (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
8 skills in this plugin
/agentic-platform-schemaAgentic Platform Contract tables for AI agent applications - runs, events, artifacts, and tool calls tracking. Use when building AI agent backends that need structured run/event storage./e2e-test-scenariosEnd-to-end testing scenarios for Supabase - complete workflow tests from project creation to AI features, validation scripts, and comprehensive test suites. Use when testing Supabase integrations, validating AI workflows, running E2E tests, verifying production readiness, or when user mentions Supabase testing, E2E tests, integration testing, pgvector testing, auth testing, or test automation./pgvector-setupConfigure pgvector extension for vector search in Supabase - includes embedding storage, HNSW/IVFFlat indexes, hybrid search setup, and AI-optimized query patterns. Use when setting up vector search, building RAG systems, configuring semantic search, creating embedding storage, or when user mentions pgvector, vector database, embeddings, semantic search, or hybrid search./rls-templatesRow Level Security policy templates for Supabase - multi-tenant patterns, user isolation, role-based access, and secure-by-default configurations. Use when securing Supabase tables, implementing RLS policies, building multi-tenant AI apps, protecting user data, creating chat/RAG systems, or when user mentions row level security, RLS, Supabase security, tenant isolation, or data access policies./rls-test-patternsRLS policy testing patterns for Supabase - automated test cases for Row Level Security enforcement, user isolation verification, multi-tenant security, and comprehensive security audit scripts. Use when testing RLS policies, validating user isolation, auditing Supabase security, verifying tenant isolation, testing row level security, running security tests, or when user mentions RLS testing, security validation, policy testing, or data leak prevention./schema-patternsProduction-ready database schema patterns for AI applications including chat/conversation schemas, RAG document storage with pgvector, multi-tenant organization models, user management, and AI usage tracking. Use when building AI applications, creating database schemas, setting up chat systems, implementing RAG, designing multi-tenant databases, or when user mentions supabase schemas, chat database, RAG storage, pgvector, embeddings, conversation history, or AI application database.npx claudepluginhub vanman2024/ai-dev-marketplace --plugin supabaseOther plugins' skills for the same job