convex-auth
यह क्या करती है
यह स्किल Convex पर बने ऐप में उपयोगकर्ता साइन-इन जोड़ती है। यह लॉगिन तरीका, सर्वर सेटिंग और एक बुनियादी साइन-इन स्क्रीन सेट करती है।
कब इस्तेमाल करें
- ✓जब आप Convex ऐप बना रहे हों और उपयोगकर्ताओं को लॉग इन करवाना हो।
- ✓जब आप मौजूदा Convex प्रोजेक्ट में passkeys, Google साइन-इन या पासवर्ड लॉगिन जोड़ना चाहें।
- ✓जब auth कॉन्फ़िग गायब या गलत होने से आपका Convex लॉगिन सेटअप विफल हो रहा हो।
Skill का लिंक
https://github.com/openclaw/clawhub/blob/main/.agents/skills/convex-auth/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरे Convex ऐप में passkeys से साइन-इन जोड़िए।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट Convex auth लाइब्रेरी इंस्टॉल करता है, चुना गया लॉगिन तरीका जोड़ता है, बिना इंटरैक्टिव विज़ार्ड के लॉगिन के लिए ज़रूरी कुंजियाँ बनाता है, और साइन-इन पेज जोड़ता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Add sign-in to the app
Install and wire @convex-dev/auth for the current app: a provider (passkeys by default, or OAuth/password), the server config, the client hooks, and a sign-in UI — correctly, including the auth.config.ts that's the #1 real-world auth footgun.
Workflow
- Install @convex-dev/auth (pinned build) and add it to convex.config.ts. With pnpm, also
pnpm add jose(it won't hoist otherwise); you need it for step 3. - Add the provider in convex/auth.ts (Passkey by default; Password or OAuth like Google on request).
- Generate the auth keys HEADLESSLY. Do NOT run the interactive
npx @convex-dev/authwizard: it needs a login/TTY and hangs in non-interactive, anonymous, or CI runs (the #1 auth time-sink). Generate JWT_PRIVATE_KEY + JWKS deterministically withjose: node -e 'import("jose").then(async({generateKeyPair,exportPKCS8,exportJWK})=>{const k=await generateKeyPair("RS256",{extractable:true});const priv=await exportPKCS8(k.privateKey);const pub=await exportJWK(k.publicKey);process.stdout.write(JSON.stringify({JWT_PRIVATE_KEY:priv.trimEnd().replace(/\n/g," "),JWKS:JSON.stringify({keys:[{use:"sig",...pub}]})}))})' > .auth-keys.json Then set JWT_PRIVATE_KEY and JWKS (from .auth-keys.json) plus SITE_URL on the deployment. Prefer the Convex MCPenvSettool, one call per var, to avoid shell-quoting the multi-line key. CLI fallback: use the NAME=VALUE form (npx convex env set "JWT_PRIVATE_KEY=$JWT"), NEVERenv set JWT_PRIVATE_KEY "$JWT"(the value starts with-----BEGINand the CLI parses the leading-as an unknown flag). SITE_URL is the dev URL (e.g. http://localhost:3000). Delete .auth-keys.json after. - Write convex/auth.config.ts (the silently-always-signed-out bug lives here if it's wrong).
- Wire the client: ConvexAuthProvider, the sign-in component, and route guards. If you import shadcn/ui primitives (button, input, textarea, label, and so on), add them first with
npx shadcn@latest add <name>; a missing @/components/ui/* is a hard build error. - Verify a sign-in round-trips before declaring done.
Rules
- Generate JWT_PRIVATE_KEY/JWKS with
jose(extractable RS256; PKCS8 newlines to spaces; JWKS = {keys:[{use:"sig", ...publicJwk}]}). Do NOT run the interactivenpx @convex-dev/authwizard: it hangs headless/anonymous. Set the vars via the MCPenvSettool or the NAME=VALUE CLI form. - Always write auth.config.ts: a missing/incorrect one makes the app silently always-signed-out with no error.
- Passkeys by default; only switch to password/OAuth on explicit request.
- Install any shadcn/ui primitive you import up front (
npx shadcn@latest add ...); a missing @/components/ui/* is a hard build failure. - Verify a real sign-in works before finishing.
अक्सर पूछे जाने वाले सवाल
क्या इसे इस्तेमाल करने के लिए कोडिंग आनी चाहिए?
थोड़ी तकनीकी समझ मदद करती है, क्योंकि एजेंट प्रोजेक्ट फ़ाइलें बदलता है और सर्वर सेटिंग लगाता है। स्किल हर चरण में मार्गदर्शन देती है।
यह कौन से साइन-इन तरीके सपोर्ट करती है?
Passkeys डिफ़ॉल्ट हैं। आपके माँगने पर स्किल पासवर्ड या Google जैसा OAuth लॉगिन भी जोड़ सकती है।
क्या यह मेरे लिए सेटअप विज़ार्ड चलाएगी?
नहीं। स्किल इंटरैक्टिव विज़ार्ड से बचती है, जो स्वचालित चलने में अटक सकता है, और कुंजियाँ सीधे बनाती है।
जानकारी
लेखक का मूल विवरण
Add authentication (passkeys/OAuth) to the current Convex app, including the auth.config.ts wiring.
repo: openclaw/clawhub
लोकप्रियता
- GitHub स्टार
- 9.5k
- रैंकिंग में स्थान
- #12234
- लाइसेंस
- MIT
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
axiom-alerting
9.5kआपके एजेंट को Axiom API से Axiom मॉनिटर और सूचना मार्ग बनाने और प्रबंधित करने में मदद करती है, और यह जाँचती है कि अलर्ट अपेक्षित ढंग से काम करते हैं।
axiom-sre
9.5kआपके एजेंट को प्रोडक्शन घटनाओं और बग की जाँच चरण-दर-चरण करने देती है, निष्कर्ष निकालने से पहले हर अनुमान को Axiom लॉग से परखते हुए।
building-dashboards
9.5kआपके एजेंट को Axiom डैशबोर्ड डिज़ाइन करने में मदद करती है, जिसमें सही चार्ट, क्वेरी और फ़िल्टर हों, और शुरुआत उन फ़ैसलों से होती है जिन्हें डैशबोर्ड सहारा देगा।
controlling-costs
9.5kआपके एजेंट को Axiom में अनुपयोगी डेटा ढूँढने और ऐसे डैशबोर्ड व मॉनिटर बनाने में मदद करती है जो लॉगिंग लागत को ट्रैक करें और घटाएँ।
मिलती-जुलती skills
api-connector-builder
280kयह आपके एजेंट को मौजूदा pattern के हिसाब से नए API connections बनाने देता है। जब बिना कोई नया तरीका बनाए एक और integration जोड़ना हो, तब इसका इस्तेमाल करें।
api-design
280kयह आपके एजेंट को best practices के हिसाब से REST APIs डिज़ाइन करने में मदद करता है। यह तय करने में काम आता है कि APIs आपस में कैसे बात करें, errors कैसे दिखें, और data को कैसे व्यवस्थित करें।
backend-patterns
280kआपके एजेंट को server-side architecture patterns और database optimization में मदद करता है। server पर चलने वाला code बनाने या review करने के लिए उपयोगी है।