auth-web-cloudbase

Enable web-based CloudBase authentication for frontend apps using @cloudbase/js-sdk.

1|1|Updated Mar 18, 2026
One-click install
npx skills add https://github.com/xianmingyao/openclaw-CaySon --skill auth-web-cloudbase-xianmingyao
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: auth-web-cloudbase
Source: https://github.com/xianmingyao/openclaw-CaySon/tree/main/skills/cloudbase/references/auth-web
Command: npx skills add https://github.com/xianmingyao/openclaw-CaySon --skill auth-web-cloudbase-xianmingyao

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

CloudBase Web Authentication for frontend apps after the auth-tool configuration step, delivering a practical, multi-method integration guide for login, session, and user management.

Core Features & Use Cases

  • Web frontend projects using @cloudbase/[email protected]+ support multiple login methods (phone, email, anonymous, username/password, third-party) and unified user management, with provider setup guided by auth-tool.
  • Use Case: Build a login page, auth modal, and protected routes in a frontend app by wiring the CloudBase JS SDK.

Quick Start

Initialize the CloudBase app with env, region, publishable key, and enable auth, then call app.auth to access login methods.

Frequently Asked Questions about auth-web-cloudbase

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

FAQPage Schema
How do I add CloudBase authentication to a web frontend using JavaScript SDK?

To add CloudBase authentication, initialize your app with env, region, and publishable key, then enable auth and call app.auth to access login methods via @cloudbase/js-sdk.

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

The CloudBase JS SDK supports multiple login methods including phone, email, anonymous, username/password, and third-party OAuth, with unified user management for web frontend projects.

Do I need to configure auth providers before implementing frontend CloudBase login?

Yes, you must complete provider setup using auth-tool-cloudbase and obtain a publishable key before implementing the frontend login code in your web application.

How do I manage user sessions and profiles after CloudBase web authentication?

CloudBase web authentication handles session and user profile flows through the @cloudbase/js-sdk, enabling you to build protected routes and manage authenticated states in frontend projects.

Can I build a login page and protected routes with @cloudbase/js-sdk?

Yes, you can build a login page, auth modal, and protected routes by wiring the CloudBase JS SDK in your frontend app, using the auth integration for session management.

What version of @cloudbase/js-sdk is required for multi-method web authentication?

Web frontend projects require @cloudbase/js-sdk version 2.24.0 or higher to support multiple login methods and unified user management with CloudBase authentication.