auth-web-cloudbase

Implement CloudBase Auth v2 web authentication with the JS SDK.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/LYC1197060211/jxj --skill auth-web-cloudbase-lyc1197060211
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: auth-web-cloudbase
Source: https://github.com/LYC1197060211/jxj/tree/main/web-admin/.claude/skills/auth-web
Command: npx skills add https://github.com/LYC1197060211/jxj --skill auth-web-cloudbase-lyc1197060211

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @cloudbase/js-sdk.

What problem does it solve?

This Skill provides a comprehensive guide for implementing frontend web authentication using CloudBase's Auth v2 system and the @cloudbase/js-sdk. It covers various login flows, user management, and essential configurations.

Core Features & Use Cases

  • Multiple Login Methods: Supports SMS, email, username/password, anonymous, WeChat OAuth, and custom tickets.
  • User Management: Includes functions for signing out, updating profiles, and deleting accounts.
  • Session Handling: Covers listening for login state changes and getting access tokens for backend verification.
  • Use Case: Integrate secure and flexible user authentication into your web application, allowing users to sign up and log in using their preferred methods while ensuring secure session management.

Quick Start

Use the auth-web-cloudbase skill to implement SMS login for your web application by following the provided code examples.

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 with CloudBase Web SDK?

To implement web authentication with CloudBase Web SDK, use the @cloudbase/[email protected] to initialize the Auth v2 system synchronously, configure security domains in the console, and enable your preferred login methods.

What login methods are supported by CloudBase Auth v2?

CloudBase Auth v2 supports multiple login methods including SMS, email, username/password, anonymous, WeChat OAuth, and custom tickets, allowing flexible frontend authentication integration.

How do I handle user management and session state in CloudBase?

Handle user management and session state in CloudBase by using built-in SDK functions to sign out users, update profiles, delete accounts, listen for login state changes, and retrieve access tokens for backend verification.

Do I need console configuration before using CloudBase Web SDK for authentication?

Yes, you must configure security domains and enable specific login methods in the CloudBase console before the Web SDK can execute frontend authentication flows securely.

How do I set up SMS login for a web application using CloudBase?

Set up SMS login for a web application using CloudBase by configuring the SMS login method in your console, then following the provided Auth v2 code examples to send captcha codes and verify user credentials.

Why is captcha handling needed during CloudBase web authentication?

Captcha handling is needed during CloudBase web authentication to secure automated login attempts, ensuring that SMS and email verification flows are protected against bot abuse.