auth-nodejs-cloudbase

Identify CloudBase callers and retrieve user identity via Node SDK auth methods.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Backend services running in CloudBase need reliable identity signals to authorize actions, access user data, and bridge external user systems into CloudBase securely.

Core Features & Use Cases

  • Identify the current caller using auth.getUserInfo to obtain uid, openId, appId, and customUserId for authorization decisions.
  • Look up detailed end-user profiles with auth.getEndUserInfo and find users by login identifiers via auth.queryUserInfo.
  • Issue and exchange custom login tickets with auth.createTicket for integrating existing user systems.
  • Retrieve caller IP with auth.getClientIP for security logging and threat detection.

Quick Start

Initialize the CloudBase Node SDK in your function and start using auth.getUserInfo() to identify the caller.

Frequently Asked Questions about auth-nodejs-cloudbase

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

FAQPage Schema
Does the CloudBase Node SDK support bridging external user identities?

Yes, the CloudBase Node SDK supports bridging external identities by using auth.createTicket to issue custom login tickets, allowing existing user systems to integrate securely with CloudBase.

How do I identify the current caller in CloudBase Node.js backend environments?

To identify the caller in CloudBase Node.js, use the auth.getUserInfo method. This retrieves the uid, openId, appId, and customUserId of the current caller, enabling secure authorization decisions for backend services.

How do I integrate an existing user system with CloudBase custom login?

Integrate existing user systems with CloudBase custom login by issuing and exchanging custom login tickets. Use the auth.createTicket method to securely bridge external user identities into CloudBase.

Can I retrieve detailed end-user profiles and find users by login identifiers in CloudBase?

Yes, you can retrieve detailed end-user profiles using auth.getEndUserInfo and find specific users by their login identifiers via auth.queryUserInfo within your CloudBase Node.js environment.

How do I get the client IP address for security logging in CloudBase?

Retrieve the current caller's IP address in CloudBase using the auth.getClientIP method. This provides the necessary IP logging data for backend security monitoring and threat detection.

Does the CloudBase Node SDK support bridging external user identities?

Yes, the CloudBase Node SDK supports bridging external identities by using auth.createTicket to issue custom login tickets, allowing existing user systems to integrate securely with CloudBase.