auth-nodejs-cloudbase

Authenticate CloudBase Node.js callers and issue custom login tickets.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill guides backend CloudBase Node.js code to securely access caller identity, fetch user profiles, and manage custom login tickets in CloudBase Auth.

Core Features & Use Cases

  • Identify the current caller with auth.getUserInfo() for authorization decisions and auditing.
  • Retrieve end-user profiles via auth.getEndUserInfo() and queryUserInfo() using uid or login identifiers.
  • Issue and manage custom login tickets with auth.createTicket() for seamless cross-system sign-in.
  • Get client IP for security auditing with auth.getClientIP() in CloudBase functions.

Quick Start

Initialize the CloudBase Node.js SDK, obtain auth, and start querying or issuing tickets as per your backend logic.

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 backend services?

To get caller identity in CloudBase Node.js, use the auth.getUserInfo() method. It securely retrieves the current caller's information for backend authorization decisions and access auditing.

How do I fetch end-user profiles via CloudBase Node SDK?

Fetch end-user profiles via CloudBase Node SDK using auth.getEndUserInfo() or queryUserInfo(). These methods look up end users by uid or login identifiers to retrieve their profile data for backend processing.

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

Yes, you can issue custom login tickets with CloudBase Node.js using the auth.createTicket() method. This enables seamless cross-system sign-in by generating valid authentication tickets directly from your backend service.

Does CloudBase Node SDK support getting client IP for security auditing?

Yes, CloudBase Node SDK supports getting client IP for security auditing using the auth.getClientIP() method. It extracts the caller's IP address within CloudBase functions to monitor and log security events.

What's the best way to manage CloudBase authentication in server-side Node services?

The best way to manage CloudBase authentication in server-side Node services is using the official CloudBase Node SDK. It provides canonical methods like getUserInfo and createTicket to securely identify callers and manage auth workflows.