nice-wolf-studio/claude-code-supabase-skills/supabase-auth
Claude Code and agent skill by nice-wolf-studio/claude-code-supabase-skills
- community
Checking that the SKILL.md file is still in the repository.
Manage authentication and user operations in Supabase. Use for sign up, sign in, sign out, password resets, and user management.
Install
npx vskill@latest install nice-wolf-studio/claude-code-supabase-skills/supabase-authSKILL.md
Supabase Authentication
Overview
This skill provides authentication and user management operations through the Supabase Auth API. Supports email/password authentication, session management, user metadata, and password recovery.
Prerequisites
Required environment variables:
Helper script: This skill uses the shared Supabase API helper. Make sure to source it:
Common Operations
Sign Up - Create New User
Basic email/password signup:
Signup with user metadata:
Auto-confirm user (requires service role key):
Sign In - Authenticate User
Email/password login:
Response includes:
access_token- JWT token for authenticated requestsrefresh_token- Token to get new access token when expireduser- User object with id, email, metadataexpires_in- Token expiration time in seconds
Get Current User
Retrieve user info with access token:
Update User
Update user metadata:
Update email:
Update password:
Sign Out
Sign out user (invalidate refresh token):
Refresh Token
Get new access token using refresh token:
Password Recovery
Send password reset email:
Reset password with recovery token:
Resend Confirmation Email
Resend email verification:
Admin Operations (Service Role Key Required)
List All Users
Get all users (requires service role key):
Paginated user list:
Get User by ID
Retrieve specific user (requires service role key):
Create User (Admin)
Create user without email confirmation:
Update User (Admin)
Update user as admin:
Delete User (Admin)
Delete user account:
Common Patterns
Login and Store Tokens
Check if User Exists
Verify JWT Token
Error Handling
Common error responses:
| Status | Error | Meaning | |
|---|---|---|---|
| 400 | Invalid login credentials | Wrong email or password | |
| 400 | User already registered | Email already exists | |
| 401 | Invalid token | Access token expired or invalid | |
| 422 | Validation error | Invalid email format or weak password | |
| 429 | Too many requests | Rate limit exceeded |
Security Best Practices
- Never commit credentials: Store tokens in environment variables or secure files
- Use anon key for client operations: Public-facing authentication
- Use service role key carefully: Admin operations only, never expose to clients
- Implement token refresh: Refresh access tokens before they expire
- Enable RLS: Configure Row Level Security policies in Supabase dashboard
- Validate tokens server-side: Don't trust client-provided tokens without verification
Session Management
Typical flow:
- User signs in → Get access_token and refresh_token
- Store tokens securely
- Use access_token in Authorization header for authenticated requests
- When access_token expires → Use refresh_token to get new access_token
- User signs out → Invalidate refresh_token
Token lifespan:
- Access token: 1 hour (default)
- Refresh token: 30 days (default)
API Documentation
Full Supabase Auth API documentation: https://supabase.com/docs/guides/auth
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/supabase-auth/SKILL.md
Popularity
- Repository stars
- 11
- 7-day trend score
- 12
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 22 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/nice-wolf-studio/claude-code-supabase-skills/supabase-auth)