auth-web-cloudbase

Implement CloudBase web authentication with login flows and user management.

72|5|Updated Jan 22, 2026
One-click install
npx skills add https://github.com/TencentCloudBase/skills --skill auth-web-cloudbase
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: auth-web-cloudbase
Source: https://github.com/TencentCloudBase/skills/tree/main/skills/auth-web
Command: npx skills add https://github.com/TencentCloudBase/skills --skill auth-web-cloudbase

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

CloudBase Web Authentication Quick Guide provides concise and practical web frontend authentication solutions for CloudBase apps, consolidating multiple login methods and complete user management to reduce integration effort.

Core Features & Use Cases

  • Web frontend authentication for CloudBase apps using @cloudbase/js-sdk
  • Supports phone OTP, email OTP, password, anonymous, OAuth (Google/WeChat), and custom tickets
  • Complete user management: sign in, sign up, getUser, updateUser, linkIdentity, and session handling
  • Use cases: building SaaS dashboards, customer portals, or admin panels with secure user authentication

Quick Start

Prerequisites: CloudBase environment ID (env) and region. Use auth-tool-cloudbase to obtain a publishable key and configure login methods.

  • Install the CloudBase JS SDK: npm install @cloudbase/js-sdk
  • Initialize CloudBase in your app: import cloudbase from '@cloudbase/js-sdk' const app = cloudbase.init({ env: 'your-env-id', region: 'your-region', accessKey: 'publishable-key', auth: { detectSessionInUrl: true } }) const auth = app.auth
  • Start with a login flow, e.g., signInWithOtp or signInWithPassword as your entry point.

Frequently Asked Questions about auth-web-cloudbase

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement web authentication in a CloudBase app?

Web authentication for CloudBase apps is implemented by initializing the @cloudbase/js-sdk with your environment ID and publishable key. You then use the auth module to execute login flows like signInWithOtp or signInWithPassword for your users.

What login methods does the CloudBase JS SDK support for web frontends?

The CloudBase JS SDK supports multiple login methods for web frontends including phone OTP, email OTP, password, anonymous, OAuth (Google/WeChat), and custom tickets. These options provide flexible authentication for various user management scenarios.

Do I need a specific environment setup before adding OAuth to my CloudBase web project?

Yes, adding OAuth to your CloudBase web project requires a configured CloudBase environment ID and region. You also need to obtain a publishable key and configure your desired login methods using the auth-tool-cloudbase utility before frontend integration.

Can I handle user management operations like updating profiles and linking identities with CloudBase?

Yes, CloudBase handles complete user management operations including sign up, sign in, getUser, updateUser, and linkIdentity. It also provides session handling to maintain secure user states across your web application.

Is @cloudbase/js-sdk suitable for building SaaS dashboard authentication?

Yes, the @cloudbase/js-sdk is suitable for building SaaS dashboards, customer portals, or admin panels. It provides secure user authentication and integrated user management specifically designed for these typical web app scenarios.