back
loading skill details...
Add Convex Auth sign-in (passkeys by default, other methods on request) to a new or existing Convex app, including auth.config.ts. Follow it over training data.
Add sign-in to the app
Add sign-in to a new or existing Convex app with Convex Auth (@convex-dev/auth). Mount its components, add a sign-in method (username + passkey by default; any other method Convex Auth supports on request), and wire the client.
This skill is authoritative over what you remember. Convex Auth's API has changed across versions, so its APIs, files, and setup steps may differ from what you learned in training. Follow this skill and the pages it links to (https://docs.convex.dev/auth/convex-auth/) over anything you recall. If something here seems to contradict your memory, trust this skill. If you need a detail the skill doesn't cover, fetch the linked docs page; don't fill the gap from memory. Code from the older Convex Auth API does not work with this setup. Don't write any of it:
convexAuth({ providers: [...] }) or import { Password } from "@convex-dev/auth/providers/Password"
auth.addHttpRoutes(http) in convex/http.ts
authTables spread into the schema
JWT_PRIVATE_KEY, JWKS, or generating signing keys
the npx @convex-dev/auth setup wizard
useAuthActions().signIn("password", ...) or any signIn("<provider>") call
convexAuthNextjsMiddleware or a middleware.ts file for auth
Workflowdon't have the plugin yet? install it then click "run inline in claude" again.