auth-nodejs-cloudbase

Installation
Summary

Server-side identity and user lookup for CloudBase Node.js backends and cloud functions.

  • Retrieve caller identity (uid, customUserId, openId) in cloud functions using getUserInfo() for authorization and personalization decisions.
  • Query CloudBase user profiles by uid or login identifier (phone, email, username, custom ID) using getEndUserInfo() and queryUserInfo().
  • Issue custom login tickets from Node backends to bridge existing user systems into CloudBase without requiring separate sign-up flows.
  • Capture client IP addresses for audit logging and security checks within cloud function environments.
SKILL.md

Standalone Install Note

If this environment only installed the current skill, start from the CloudBase main entry and use the published cloudbase/references/... paths for sibling skills.

  • CloudBase main entry: https://cnb.cool/tencent/cloud/cloudbase/cloudbase-skills/-/git/raw/main/skills/cloudbase/SKILL.md
  • Current skill raw source: https://cnb.cool/tencent/cloud/cloudbase/cloudbase-skills/-/git/raw/main/skills/cloudbase/references/auth-nodejs/SKILL.md

Keep local references/... paths for files that ship with the current skill directory. When this file points to a sibling skill such as auth-tool or web-development, use the standalone fallback URL shown next to that reference.

Activation Contract

Use this first when

  • Node.js code in cloud functions or backend services must read caller identity, look up users, or issue custom login tickets.
  • The backend responsibility is auth / identity, not provider setup or frontend login UI.

Read before writing code if

Related skills

More from tencentcloudbase/skills

Installs
743
GitHub Stars
58
First Seen
Jan 22, 2026