auth-nodejs-cloudbase
Complete guide for CloudBase Auth using the CloudBase Node SDK – caller identity, user lookup, custom login tickets, and server-side best practices.
npx skills add majiayu000/claude-skill-registry --skill auth-nodejs-baiyongping-cowork-platform-2 --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
## When to use this skill Use this skill whenever the task involves **server-side authentication or identity** in a CloudBase project, and the code is running in **Node.js**, for example: - CloudBase 云函数 (Node runtime) that needs to know **who is calling** - Node services that use **CloudBase Node SDK** to look up user information - Backends that issue **custom login tickets** for Web / mobile clients - Admin or ops tools that need to inspect CloudBase end-user profiles **Do NOT use this skill for:** - Frontend Web login / sign-up flows using `@cloudbase/js-sdk` (handle those with the **CloudBase Web Auth** skill at `skills/web-auth-skill`, not this Node skill). - Direct HTTP auth API integrations (this skill does not describe raw HTTP endpoints; use the **CloudBase HTTP Auth** skill at `skills/auth-http-api-skill` instead). - Database or storage operations that do not involve identity (use database/storage docs or skills). When the user request mixes frontend and backend concerns (e.g. "build a web login page and a Node API that knows the user"), treat them separately: - Use Web-side auth docs/skills for client login and UX. - Use this Node Auth skill for how the backend sees and
- When to use this skill
- How to use this skill (for a coding agent)
- Node auth architecture – how Node fits into CloudBase Auth
- Node Auth APIs covered by this skill
- Scenarios – Node auth patterns
- Scenario 1: Initialize Node SDK and auth in a CloudBase function
- Scenario 2: Get caller identity in a CloudBase function
- Scenario 3: Get full end‑user profile by UID
- Scenario 4: Get full profile for the current caller
- Scenario 5: Query user by login identifier
- Scenario 6: Get client IP in a function
- Custom login tickets (Node side only)
- Scenario 7: Initialize Node SDK with custom login credentials
- Scenario 8: Issue a custom login ticket for a given customUserId
What does the auth-nodejs-cloudbase skill do?
Complete guide for CloudBase Auth using the CloudBase Node SDK – caller identity, user lookup, custom login tickets, and server-side best practices.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill auth-nodejs-baiyongping-cowork-platform-2 --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
