auth-nodejs-cloudbase

Identify callers, look up users, and issue custom login tickets in CloudBase Node.js.

1|Updated Apr 13, 2026
One-click install
npx skills add https://github.com/AYin-Z/class_mansys --skill auth-nodejs-cloudbase-ayin-z
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: auth-nodejs-cloudbase
Source: https://github.com/AYin-Z/class_mansys/tree/main/.trae/skills/cloudbase/references/auth-nodejs
Command: npx skills add https://github.com/AYin-Z/class_mansys --skill auth-nodejs-cloudbase-ayin-z

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Centralize server-side authentication for CloudBase in Node.js, enabling backends to identify callers, look up end users, and bridge external user systems via custom login tickets.

Core Features & Use Cases

  • Get caller identity using auth.getUserInfo()
  • Get end-user profiles via auth.getEndUserInfo()
  • Query users by identifiers via auth.queryUserInfo()
  • Issue custom login tickets via auth.createTicket()
  • Get client IP with auth.getClientIP()

Quick Start

Install the CloudBase Node.js SDK, initialize with your environment ID, and start using the auth methods inside a CloudBase function to begin identifying callers and managing users.

Frequently Asked Questions about auth-nodejs-cloudbase

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

FAQPage Schema
How do I identify callers in CloudBase cloud functions using Node.js?

To identify callers in CloudBase cloud functions, use the Node SDK auth.getUserInfo() method. This server-side approach returns typed results, enabling your backend to securely verify who is making the request.

What is the best way to look up end users in a CloudBase Node service?

The best way to look up end users is using auth.getEndUserInfo() and auth.queryUserInfo(). These CloudBase Node SDK methods fetch profiles and query users by specific identifiers, returning typed data shapes for backend user management.

Can I bridge an external user system with CloudBase authentication?

Yes, you can bridge external user systems by issuing custom login tickets via auth.createTicket(). This CloudBase Node SDK pattern translates external identities into valid CloudBase authentication sessions for end users.

Does CloudBase Node SDK auth work for server-side user management without client SDKs?

CloudBase Node SDK auth works server-side without client SDKs by applying getUserInfo, getEndUserInfo, queryUserInfo, and createTicket flows. Your Node services handle identity, user lookup, and custom ticket issuance independently.

How do I get the client IP in a CloudBase cloud function?

To get the client IP in a CloudBase cloud function, use the auth.getClientIP() method. This server-side Node SDK function extracts the caller's IP address, returning it as a typed result for identity and security logging.

What are the limitations of using createTicket for custom login in CloudBase?

The metadata does not specify explicit limitations for createTicket, but this custom login flow must be implemented in a server-side Node.js environment using the CloudBase Node SDK, handling errors according to SDK documentation.