auth-nodejs-cloudbase

Implements CloudBase Node SDK auth functions for user lookup and ticket creation.

Updated Dec 24, 2025
One-click install
npx skills add https://github.com/baiyongping/cowork-platform --skill auth-nodejs-cloudbase-baiyongping
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: auth-nodejs-cloudbase
Source: https://github.com/baiyongping/cowork-platform/tree/main/.claude/skills/auth-nodejs
Command: npx skills add https://github.com/baiyongping/cowork-platform --skill auth-nodejs-cloudbase-baiyongping

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

CloudBase authentication and user lookup in Node.js backends, enabling secure caller identity, end-user profiling, and ticket-based login workflows.

Core Features & Use Cases

  • Caller identity: read the current user context in CloudBase functions using the Node SDK.
  • User lookup: retrieve end-user profiles by uid or login identifiers.
  • Custom login tickets: issue and exchange tickets to bridge existing user systems with CloudBase Auth.
  • Security best practices: enforce least privilege and safe handling of credentials and tokens.
  • Use Case: backend services needing to authorize actions based on caller identity and user attributes.

Quick Start

Initialize the CloudBase Node SDK in a CloudBase function and demonstrate reading the caller identity with auth.getUserInfo().

Frequently Asked Questions about auth-nodejs-cloudbase

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I get caller identity in CloudBase Node.js functions?

You retrieve caller identity in CloudBase Node.js functions by initializing the Node SDK and calling auth.getUserInfo() to read the current user context for backend authorization.

How do I look up end-user profiles in CloudBase using Node SDK?

Look up end-user profiles in CloudBase using the Node SDK by calling getEndUserInfo or queryUserInfo to retrieve user data by uid or login identifiers.

Can I issue custom login tickets in CloudBase with Node.js?

Yes, you can issue custom login tickets in CloudBase with Node.js by calling createTicket to bridge existing user systems with CloudBase Auth for secure authentication.

What security best practices apply to CloudBase server-side authentication?

Security best practices for CloudBase server-side authentication include enforcing least privilege and safely handling credentials and tokens to protect caller identity and user attributes.

Does CloudBase Node SDK support getting the client IP address?

Yes, the CloudBase Node SDK supports getting the client IP address by calling getClientIP within your CloudBase functions to identify the caller's network origin.