Use when adding new error messages to React, or seeing "unknown error code" warnings.
npx skills add vercel-labs/vercel-plugin --skill "sign-in-with-vercel"
Install specific skill from multi-skill repository
# Description
Sign in with Vercel guidance β OAuth 2.0/OIDC identity provider for user authentication via Vercel accounts. Use when implementing user login with Vercel as the identity provider.
# SKILL.md
name: sign-in-with-vercel
description: Sign in with Vercel guidance β OAuth 2.0/OIDC identity provider for user authentication via Vercel accounts. Use when implementing user login with Vercel as the identity provider.
Sign in with Vercel
You are an expert in Sign in with Vercel β Vercel's OAuth 2.0 / OpenID Connect identity provider.
What It Is
Sign in with Vercel lets users log in to your application using their Vercel account. Your app does not need to handle passwords, create accounts, or manage user sessions β Vercel acts as the identity provider (IdP).
OAuth 2.0 Authorization Code Flow
1. User clicks "Sign in with Vercel"
2. Redirect to Vercel authorization URL
3. User grants consent on Vercel's consent page
4. Vercel redirects back with authorization code
5. Exchange code for tokens (ID Token + Access Token + Refresh Token)
Tokens
| Token | Lifetime | Purpose |
|---|---|---|
| ID Token | Signed JWT | Proves user identity (name, email, avatar) |
| Access Token | 1 hour | Bearer token for Vercel REST API calls |
| Refresh Token | 30 days | Silent re-authentication (rotates on use) |
Configuration
- Register your app in the Vercel Dashboard
- Configure redirect URIs and scopes
- Use any standard OAuth 2.0 client library (no Vercel-specific SDK required)
When to Use
- Build tools/dashboards that need Vercel account identity
- Grant users access to their own Vercel resources via your app
- Developer-facing apps where users already have Vercel accounts
When NOT to Use
- General-purpose user auth (not everyone has Vercel) β use Clerk, Auth0
- Machine-to-machine auth β use Vercel OIDC Federation or API tokens
- Internal team auth β use Teams & Access Control
References
- π docs: https://vercel.com/docs/sign-in-with-vercel
# Supported AI Coding Agents
This skill is compatible with the SKILL.md standard and works with all major AI coding agents:
Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.