auth-nodejs-cloudbase

Identify CloudBase callers and issue custom login tickets via @cloudbase/node-sdk.

2|1|Updated Apr 3, 2026
One-click install
npx skills add https://github.com/lxb031018/qintu --skill auth-nodejs-cloudbase-lxb031018
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: auth-nodejs-cloudbase
Source: https://github.com/lxb031018/qintu/tree/main/.codebuddy/skills/auth-nodejs
Command: npx skills add https://github.com/lxb031018/qintu --skill auth-nodejs-cloudbase-lxb031018

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Backend Node.js services need a reliable way to understand the authenticated caller, inspect CloudBase end-user profiles, or bridge an external user system into CloudBase without leaking identity logic into the client.

Core Features & Use Cases

  • Caller identity in CloudBase: Read who is calling your CloudBase cloud function to support authorization and auditing.
  • End-user profile lookup: Fetch full user information by uid, or search by login identifier (platform + platformId) for admin-style workflows.
  • Custom login ticket issuance: Create server-side custom login tickets so trusted clients can log in with their existing user identity mapping.

Quick Start

Use this skill to have a CloudBase Node.js function read caller identity with auth.getUserInfo(), optionally fetch additional end-user details with auth.getEndUserInfo or auth.queryUserInfo, or create a custom login ticket with auth.createTicket for a client to complete login.

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 a CloudBase Node.js cloud function?

To identify the caller identity in a CloudBase Node.js cloud function, use the @cloudbase/node-sdk auth.getUserInfo() method. This server-side approach securely reads the authenticated caller's details to support backend authorization and auditing.

How do I look up an end-user profile in CloudBase by login identifier?

To look up a CloudBase end-user profile, use the server-side auth.queryUserInfo method to search by platform and platformId, or use auth.getEndUserInfo to fetch full user information by uid for admin-style workflows.

How do I issue a custom login ticket for CloudBase from a Node.js backend?

To issue a custom login ticket from a Node.js backend, use the auth.createTicket method from @cloudbase/node-sdk. This allows trusted clients to log in using their existing external user identity mapping bridged into CloudBase.

Can I bridge an external user system into CloudBase without leaking identity logic to the client?

Yes, you can bridge an external user system into CloudBase by handling identity logic server-side. Your Node.js backend can issue custom login tickets via auth.createTicket, keeping the mapping process securely off the client.

Does server-side CloudBase auth require a specific Node.js SDK initialization pattern?

Yes, server-side CloudBase auth requires the correct @cloudbase/node-sdk initialization pattern to call auth methods like getUserInfo, getEndUserInfo, queryUserInfo, getClientIP, and createTicket within trusted Node services.