auth-web-cloudbase
OfficialWeb authentication made simple for CloudBase apps.
AuthorTencentCloudBase
Version1.0.0
Installs0
System Documentation
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.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: auth-web-cloudbase Download link: https://github.com/TencentCloudBase/skills/archive/main.zip#auth-web-cloudbase Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.