# Convex Auth > Add authentication (passkeys/OAuth) to the current Convex app, including the auth.config.ts wiring. Source: https://skillsagentes.com/skills/get-convex/agent-skills/convex-auth Repository: https://github.com/get-convex/agent-skills Author: get-convex License: not specified Updated: hace 13 días Context cost: 25 tok installed, 749 tok once triggered, 749 tok with every bundled file Bundle: 1 file, 3 KB Permissions requested: none declared ## Install ```bash npx -y skills add get-convex/agent-skills --skill convex-auth --agent claude-code ``` ## What it does - Instala y configura @convex-dev/auth en la app Convex actual - Añade el proveedor en convex/auth.ts (Passkey por defecto, o Password/OAuth si se pide) - Genera JWT_PRIVATE_KEY y JWKS headlessly con jose y los define como variables de entorno - Escribe convex/auth.config.ts para evitar el bug de sign-out silencioso - Conecta el cliente con ConvexAuthProvider, el componente de sign-in y los route guards ## Use it when - Cuando hay que añadir autenticación (passkeys/OAuth) a la app Convex actual - Cuando se necesita configurar correctamente auth.config.ts para evitar el fallo de estar siempre desconectado ## What triggers it - "Añade autenticación con passkeys a mi app Convex" - "Configura login con Google usando @convex-dev/auth" - "Necesito sign-in por password en mi proyecto Convex" ## Before you install - Requiere @convex-dev/auth y el paquete jose (con pnpm hay que añadirlo aparte); si se usan primitivas shadcn/ui, deben instalarse antes con `npx shadcn@latest add `. ## Files - SKILL.md — 3 KB ## SKILL.md Not reproduced here. Read it at https://github.com/get-convex/agent-skills/blob/main/skills/convex-auth/SKILL.md --- Skills Agentes — https://skillsagentes.com/skills/get-convex/agent-skills/convex-auth