convex-auth
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: [...] })orimport { Password } from "@convex-dev/auth/providers/Password"auth.addHttpRoutes(http)inconvex/http.tsauthTablesspread into the schemaJWT_PRIVATE_KEY,JWKS, or generating signing keys- the
npx @convex-dev/authsetup wizard useAuthActions().signIn("password", ...)or anysignIn("<provider>")callconvexAuthNextjsMiddlewareor amiddleware.tsfile for auth