Agent skill · Security

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.

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
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.

Facts
Files in the skill folder: 2
SKILL.md size: 15 KB
Bundled scripts: none
Path: skills/api/auth-nodejs-baiyongping-cowork-platform-2/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

## 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

What's inside
Steps it walks through
  1. When to use this skill
  2. How to use this skill (for a coding agent)
  3. Node auth architecture – how Node fits into CloudBase Auth
  4. Node Auth APIs covered by this skill
  5. Scenarios – Node auth patterns
  6. Scenario 1: Initialize Node SDK and auth in a CloudBase function
  7. Scenario 2: Get caller identity in a CloudBase function
  8. Scenario 3: Get full end‑user profile by UID
  9. Scenario 4: Get full profile for the current caller
  10. Scenario 5: Query user by login identifier
  11. Scenario 6: Get client IP in a function
  12. Custom login tickets (Node side only)
  13. Scenario 7: Initialize Node SDK with custom login credentials
  14. Scenario 8: Issue a custom login ticket for a given customUserId
Ships with 1 file
  • metadata.json
More from claude-skill-registry
All skills →
About this skill
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.

Keep going