cloudbase-auth

2
0
Source

A single skill that helps design and implement CloudBase Auth v2 using Web SDK, Node SDK, and HTTP APIs, including login methods, tokens, and best practices.

Install

mkdir -p .claude/skills/cloudbase-auth && curl -L -o skill.zip "https://mcp.directory/api/skills/download/4003" && unzip -o skill.zip -d .claude/skills/cloudbase-auth && rm skill.zip

Installs to .claude/skills/cloudbase-auth

About this skill

When to use this skill

Use this skill whenever the task involves authentication or user identity in a CloudBase project, for example:

  • Designing which login methods to support (anonymous, username/password, SMS, email, WeChat, custom login)
  • Implementing auth with Web SDK (@cloudbase/js-sdk@2.x) on the frontend
  • Working with Node SDK for user info, admin operations, or issuing custom login tickets
  • Calling HTTP auth APIs directly from any backend or script
  • Understanding tokens, login state, and auth-related best practices

If the task is not about authentication (e.g. only about database or storage), this skill is probably not needed.

Quick orientation

CloudBase Auth v2 provides:

  • Multiple login methods with a unified user identity system
  • Clear user types (internal, external, anonymous) and account linking
  • A token-based session model with JWT access tokens and refresh tokens
  • SDKs (Web, Node) and HTTP APIs that expose the same core flows

This SKILL.md acts as a launcher. For deeper details, read the linked files only as needed.

Table of contents (progressive disclosure)

1. Concepts & design

  • concepts/overview.md – what CloudBase Auth v2 is, high-level architecture, and where to configure it.
  • concepts/login_methods.md – supported login methods, when to use each, and tradeoffs.
  • concepts/user_accounts_and_roles.md – internal vs external vs anonymous users, UIDs, and multi-account linking.
  • concepts/tokens_and_sessions.md – access_token vs refresh_token, v1 vs v2, and validation.

2. Web SDK (@cloudbase/js-sdk@2.x)

  • web-sdk/web_quickstart.md – install/init SDK, get auth instance, basic sign-up/sign-in flow.
  • web-sdk/web_login_flows.md – concrete flows for:
    • Username/password
    • SMS verification code login
    • Email verification code login
    • Anonymous login and upgrade
    • WeChat OAuth login
  • web-sdk/captcha_and_rate_limits.md – when captchas are triggered, how to integrate the captcha adapter + UI, and how to handle errors.
  • web-sdk/web_best_practices.md – avoiding redundant logins, login-state persistence, and common UX patterns.

3. Node SDK & custom login

  • node-sdk/node_overview_and_user_info.md – using the Node SDK to get user info, end-user info, query users, and read client IP.
  • node-sdk/node_custom_login_ticket.md – issuing custom login tickets on the server and integrating with your own user system.

4. HTTP APIs

  • http-api/http_overview.md – the HTTP API surface for auth and how to discover endpoints.
  • http-api/http_login_and_token_flows.md – high-level flows for sign-in, sign-up, anonymous login, token grant/refresh/revoke, and user operations over HTTP.

5. Troubleshooting & FAQ

  • troubleshooting/faq.md – common questions and pitfalls: anonymous vs unauthenticated, token expiry, verification limits, etc.

How to use this skill

When working on a CloudBase auth task, follow this sequence:

  1. Clarify the scenario

    • Is this frontend Web, Node backend/cloud function, or a generic backend calling HTTP APIs?
    • What login methods are required (e.g. phone, email, WeChat, custom SSO, anonymous trial)?
    • Are there existing users/identity systems that must be integrated?
  2. Load only the relevant conceptual context

    • For high-level decisions, read:
      • concepts/overview.md
      • concepts/login_methods.md
      • concepts/user_accounts_and_roles.md
    • Read concepts/tokens_and_sessions.md only if token behavior or migration is important to the task.
  3. Jump to the relevant implementation section

    • For Web implementation details, read web-sdk/web_quickstart.md and then the specific flow file (e.g. web-sdk/web_login_flows.md, web-sdk/captcha_and_rate_limits.md).
    • For Node/server logic or custom login ticket issuance, use the node-sdk/ files.
    • For language-agnostic HTTP integration, use the http-api/ files.
  4. Design first, then code

    • Use the conceptual files to pick login methods, user types, and token strategy.
    • Then use Web/Node/HTTP sections to implement and verify the flow end-to-end.
  5. Use troubleshooting only when needed

    • Only read troubleshooting/faq.md when the user has issues like “anonymous vs not logged in”, unexpected expiration, or captcha errors.

Keep this file short in context. Load deeper files selectively based on the user’s question to keep the context window efficient.

spec-workflow

TencentCloudBase

Standard software engineering workflow for requirement analysis, technical design, and task planning. Use this skill when developing new features, complex architecture designs, multi-module integrations, or projects involving database/UI design.

773

auth-web-cloudbase

TencentCloudBase

CloudBase Web Authentication Quick Guide - Provides concise and practical Web frontend authentication solutions with multiple login methods and complete user management.

30

ai-model-nodejs

TencentCloudBase

Use this skill when developing Node.js backend services or CloudBase cloud functions (Express/Koa/NestJS, serverless, backend APIs) that need AI capabilities. Features text generation (generateText), streaming (streamText), AND image generation (generateImage) via @cloudbase/node-sdk ≥3.16.0. Built-in models include Hunyuan (hunyuan-2.0-instruct-20251111 recommended), DeepSeek (deepseek-v3.2 recommended), and hunyuan-image for images. This is the ONLY SDK that supports image generation. NOT for browser/Web apps (use ai-model-web) or WeChat Mini Program (use ai-model-wechat).

00

cloud-functions

TencentCloudBase

Complete guide for CloudBase cloud functions development - runtime selection, deployment, logging, invocation, and HTTP access configuration.

00

auth-wechat-miniprogram

TencentCloudBase

Complete guide for WeChat Mini Program authentication with CloudBase - native login, user identity, and cloud function integration.

00

data-model-creation

TencentCloudBase

Optional advanced tool for complex data modeling. For simple table creation, use relational-database-tool directly with SQL statements.

00

You might also like

flutter-development

aj-geddes

Build beautiful cross-platform mobile apps with Flutter and Dart. Covers widgets, state management with Provider/BLoC, navigation, API integration, and material design.

643969

drawio-diagrams-enhanced

jgtolentino

Create professional draw.io (diagrams.net) diagrams in XML format (.drawio files) with integrated PMP/PMBOK methodologies, extensive visual asset libraries, and industry-standard professional templates. Use this skill when users ask to create flowcharts, swimlane diagrams, cross-functional flowcharts, org charts, network diagrams, UML diagrams, BPMN, project management diagrams (WBS, Gantt, PERT, RACI), risk matrices, stakeholder maps, or any other visual diagram in draw.io format. This skill includes access to custom shape libraries for icons, clipart, and professional symbols.

591705

ui-ux-pro-max

nextlevelbuilder

"UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 8 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient."

318399

godot

bfollington

This skill should be used when working on Godot Engine projects. It provides specialized knowledge of Godot's file formats (.gd, .tscn, .tres), architecture patterns (component-based, signal-driven, resource-based), common pitfalls, validation tools, code templates, and CLI workflows. The `godot` command is available for running the game, validating scripts, importing resources, and exporting builds. Use this skill for tasks involving Godot game development, debugging scene/resource files, implementing game systems, or creating new Godot components.

340397

nano-banana-pro

garg-aayush

Generate and edit images using Google's Nano Banana Pro (Gemini 3 Pro Image) API. Use when the user asks to generate, create, edit, modify, change, alter, or update images. Also use when user references an existing image file and asks to modify it in any way (e.g., "modify this image", "change the background", "replace X with Y"). Supports both text-to-image generation and image-to-image editing with configurable resolution (1K default, 2K, or 4K for high resolution). DO NOT read the image file first - use this skill directly with the --input-image parameter.

452339

fastapi-templates

wshobson

Create production-ready FastAPI projects with async patterns, dependency injection, and comprehensive error handling. Use when building new FastAPI applications or setting up backend API projects.

304231

Stay ahead of the MCP ecosystem

Get weekly updates on new skills and servers.