auth-nodejs-cloudbase

Identify CloudBase Node.js callers via auth methods for user lookup and login tickets.

Updated Mar 27, 2026
One-click install
npx skills add https://github.com/l395624064/plantCard_Demo01 --skill auth-nodejs-cloudbase-l395624064
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: auth-nodejs-cloudbase
Source: https://github.com/l395624064/plantCard_Demo01/tree/main/.trae/skills/cloudbase/references/auth-nodejs
Command: npx skills add https://github.com/l395624064/plantCard_Demo01 --skill auth-nodejs-cloudbase-l395624064

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill provides structured Node.js CloudBase Auth patterns to identify the caller, perform end-user lookups, and issue custom login tickets in backend CloudBase functions, enabling secure, auditable backend authentication.

Core Features & Use Cases

  • Identify the caller identity in CloudBase Functions via auth.getUserInfo() and use uid or customUserId for authorization decisions.
  • Retrieve detailed end-user profiles with auth.getEndUserInfo() and locate users with auth.queryUserInfo().
  • Bridge existing user systems into CloudBase by issuing custom login tickets with auth.createTicket() and guiding the Web login flow.
  • Obtain caller IP via auth.getClientIP() for security auditing.

Quick Start

Initialize the CloudBase Node.js SDK in your backend and begin implementing the canonical auth patterns described above.

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 the caller identity in CloudBase Node.js backend functions?

To identify the caller identity in CloudBase Node.js backend functions, use the auth.getUserInfo() method to read the uid or customUserId for backend authorization decisions.

What is the best way to retrieve end-user profiles using @cloudbase/node-sdk?

The best way to retrieve end-user profiles using @cloudbase/node-sdk is by calling auth.getEndUserInfo() for detailed data and auth.queryUserInfo() to locate specific users within the backend environment.

How do I bridge an existing user system into CloudBase with a custom login ticket?

Bridge an existing user system into CloudBase by issuing a custom login ticket with auth.createTicket(), guiding the Web login flow to authenticate external users into the CloudBase environment.

Can I get the caller IP address for security auditing in CloudBase Functions?

You can get the caller IP address for security auditing in CloudBase Functions by invoking the canonical auth.getClientIP() method provided by the @cloudbase/node-sdk authentication module.

Does CloudBase authentication require environment initialization before calling auth methods?

CloudBase authentication requires proper environment initialization before calling auth methods, enforcing canonical API usage and security practices across getUserInfo, getEndUserInfo, queryUserInfo, createTicket, and getClientIP.