auth-nodejs-cloudbase

Manage server-side authentication in CloudBase using the Node SDK.

1|Updated Apr 12, 2026
One-click install
npx skills add https://github.com/jngong-collab/miniapp-growth-v2-open --skill auth-nodejs-cloudbase-jngong-collab
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: auth-nodejs-cloudbase
Source: https://github.com/jngong-collab/miniapp-growth-v2-open/tree/main/.trae/skills/cloudbase/references/auth-nodejs
Command: npx skills add https://github.com/jngong-collab/miniapp-growth-v2-open --skill auth-nodejs-cloudbase-jngong-collab

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @cloudbase/node-sdk, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides comprehensive guidance and best practices for server-side authentication and identity management in CloudBase environments using the CloudBase Node SDK, enabling secure and efficient user verification and access control.

Core Features & Use Cases

  • Caller Identity: Retrieve caller identity information such as uid, openId, and customUserId for authorization and logging.
  • User Lookup: Fetch detailed user profiles and information using uid or login identifiers.
  • Custom Login Tickets: Bridge existing user systems into CloudBase using custom login tickets for seamless user authentication.
  • Security and Logging: Implement robust security measures and logging for server-side authentication processes.
  • Use Case: A Node.js backend service that needs to authenticate users and provide secure access to sensitive information or operations within a CloudBase environment.

Quick Start

Initialize the CloudBase Node SDK and use the getUserInfo method to retrieve the caller's identity information within a CloudBase function.

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

Retrieve caller identity in CloudBase by initializing the Node SDK and calling getUserInfo to extract uid, openId, and customUserId for server-side authorization and logging.

Can I use custom login tickets to bridge my existing user system into CloudBase?

Custom login tickets bridge existing user systems into CloudBase by issuing secure authentication tokens, allowing seamless server-side user verification in Node.js applications without migrating underlying identity data.

What's the best way to fetch user profiles using CloudBase Node SDK?

Fetch user profiles in CloudBase by querying with specific uid values or login identifiers through the Node SDK, returning detailed user information necessary for backend access control and logging operations.

Do I need @cloudbase/node-sdk for server-side authentication in CloudBase?

Yes, @cloudbase/node-sdk is required for server-side authentication in CloudBase, providing the core methods to retrieve caller identity, lookup users, and manage custom login tickets within Node.js environments.

Why does my CloudBase server-side authentication fail to retrieve customUserId?

Server-side authentication fails to retrieve customUserId when the CloudBase Node SDK is not properly initialized or the caller lacks associated custom identity claims required for secure user verification.

What security measures are needed for CloudBase identity management in Node.js?

CloudBase identity management requires robust server-side security measures including secure SDK initialization, strict caller identity validation, and comprehensive logging for all authentication operations within Node.js environments.