auth-nodejs-cloudbase

Implement CloudBase Node.js authentication using @cloudbase/node-sdk APIs.

Updated May 14, 2026
One-click install
npx skills add https://github.com/williamwang25/ams-admin --skill auth-nodejs-cloudbase-williamwang25
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: auth-nodejs-cloudbase
Source: https://github.com/williamwang25/ams-admin/tree/main/.windsurf/skills/cloudbase/references/auth-nodejs
Command: npx skills add https://github.com/williamwang25/ams-admin --skill auth-nodejs-cloudbase-williamwang25

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill helps you correctly implement CloudBase server-side identity for Node.js backends so you can safely determine who is calling, fetch end-user profiles, and bridge external users via custom login tickets.

Core Features & Use Cases

  • Caller identity in Node: Read the authenticated caller’s identity (uid/customUserId/openId) inside CloudBase cloud functions or other Node runtimes for authorization and auditing.
  • End-user lookup: Retrieve full CloudBase end-user profiles by uid or by login identifier (platform + platformId) when you need to enforce permissions or display admin information.
  • Custom login ticket issuance: Generate custom login tickets in Node to let trusted clients complete login without forcing users to re-sign up in CloudBase.
  • Security guardrails: Keeps the Node responsibility focused on identity/auth logic and avoids mixing provider configuration or frontend login UI work.

Quick Start

Use this skill to implement a CloudBase Node.js backend function that calls the CloudBase Node SDK to read the current caller identity and (optionally) create a custom login ticket for your trusted client.

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

To get caller identity in CloudBase Node.js cloud functions, use the @cloudbase/node-sdk auth APIs like getUserInfo and getEndUserInfo. This reads the authenticated caller's uid, customUserId, or openId for server-side authorization and auditing.

How do I create custom login tickets in a Node.js backend for CloudBase?▼

Create custom login tickets in a Node.js backend by calling the createTicket API from @cloudbase/node-sdk. This issues server-side tickets that let trusted clients complete CloudBase login without forcing users to re-sign up.

How can I look up CloudBase end-user profiles by login identifier in Node.js?▼

Look up CloudBase end-user profiles in Node.js by using the queryUserInfo API with a platform and platformId. This retrieves full user profiles when enforcing permissions or displaying admin information.

Does CloudBase authentication in Node.js handle frontend login UI and provider setup?▼

CloudBase authentication in Node.js does not handle frontend login UI or provider setup. It maintains strict separation, focusing solely on server-side identity logic, ticket issuance, and user inspection.

Can I bridge an existing user system into CloudBase using Node.js?▼

You can bridge an existing user system into CloudBase using Node.js by generating custom login tickets server-side. This allows trusted clients to complete authentication seamlessly without duplicate user registration.