मुख्य सामग्री पर जाएँ
Skillpedia
API और सर्वर (backend)9.5k · #12234

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 पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/openclaw/clawhub/blob/main/.agents/skills/convex-auth/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“मेरे Convex ऐप में passkeys से साइन-इन जोड़िए।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

एजेंट Convex auth लाइब्रेरी इंस्टॉल करता है, चुना गया लॉगिन तरीका जोड़ता है, बिना इंटरैक्टिव विज़ार्ड के लॉगिन के लिए ज़रूरी कुंजियाँ बनाता है, और साइन-इन पेज जोड़ता है।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

<!-- GENERATED from convex-agents content/capabilities/auth.json — do not edit by hand. -->

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

  1. 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.
  2. Add the provider in convex/auth.ts (Passkey by default; Password or OAuth like Google on request).
  3. Generate the auth keys HEADLESSLY. Do NOT run the interactive npx @convex-dev/auth wizard: 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 with jose: 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 MCP envSet tool, 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"), NEVER env set JWT_PRIVATE_KEY "$JWT" (the value starts with -----BEGIN and 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.
  4. Write convex/auth.config.ts (the silently-always-signed-out bug lives here if it's wrong).
  5. 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.
  6. 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 interactive npx @convex-dev/auth wizard: it hangs headless/anonymous. Set the vars via the MCP envSet tool 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

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

axiom-alerting

9.5k

आपके एजेंट को Axiom API से Axiom मॉनिटर और सूचना मार्ग बनाने और प्रबंधित करने में मदद करती है, और यह जाँचती है कि अलर्ट अपेक्षित ढंग से काम करते हैं।

कोडिंगडिप्लॉय और क्लाउड (DevOps)

axiom-sre

9.5k

आपके एजेंट को प्रोडक्शन घटनाओं और बग की जाँच चरण-दर-चरण करने देती है, निष्कर्ष निकालने से पहले हर अनुमान को Axiom लॉग से परखते हुए।

कोडिंगडिप्लॉय और क्लाउड (DevOps)

building-dashboards

9.5k

आपके एजेंट को Axiom डैशबोर्ड डिज़ाइन करने में मदद करती है, जिसमें सही चार्ट, क्वेरी और फ़िल्टर हों, और शुरुआत उन फ़ैसलों से होती है जिन्हें डैशबोर्ड सहारा देगा।

डेटाएनालिसिस और स्प्रेडशीट

controlling-costs

9.5k

आपके एजेंट को Axiom में अनुपयोगी डेटा ढूँढने और ऐसे डैशबोर्ड व मॉनिटर बनाने में मदद करती है जो लॉगिंग लागत को ट्रैक करें और घटाएँ।

कोडिंगडिप्लॉय और क्लाउड (DevOps)

मिलती-जुलती skills