auth-web-cloudbase

Implement CloudBase web authentication flows with the @cloudbase/js-sdk.

Updated Dec 19, 2025
One-click install
npx skills add https://github.com/yyds-x/walk --skill auth-web-cloudbase-yyds-x
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: auth-web-cloudbase
Source: https://github.com/yyds-x/walk/tree/main/.agents/skills/cloudbase/references/auth-web
Command: npx skills add https://github.com/yyds-x/walk --skill auth-web-cloudbase-yyds-x

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

CloudBase Web authentication integration in frontend projects requires consolidated guidance for multi-method login, session handling, and user management after provider configuration via auth-tool.

Core Features & Use Cases

  • Multi-method login: OTP (phone/email), password, anonymous, OAuth, and custom ticket flows.
  • User management: get/update user data, manage sessions, link identities, and refresh user state.
  • Web and WeChat flows: guidance for standard web apps and WeChat mini-program contexts.
  • Deployment and prerequisites: env/region setup, publishable key management, and provider enablement guidance.

Quick Start

Install the CloudBase Web SDK in your frontend project, initialize it with env, region, and a publishable key, and begin invoking the available authentication methods in your UI.

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 Web authentication to my frontend project?

You can implement CloudBase Web authentication by installing the @cloudbase/js-sdk, initializing it with your env, region, and publishable key, and calling the available login and session methods in your UI.

Can I use phone OTP and password login together with the CloudBase JS SDK?

Yes, the CloudBase JS SDK supports multi-method login including phone and email OTP, password-based login, anonymous access, OAuth, and custom ticket flows within the same web application.

What do I need to configure before implementing CloudBase Web auth?

Before implementing CloudBase Web auth, you need a CloudBase environment and region, a publishable key generated from auth-tool-cloudbase, and provider enablement configured via auth-tool-cloudbase for your chosen login methods.

Does CloudBase Web authentication work with WeChat mini-programs?

Yes, CloudBase Web authentication provides specific guidance for both standard web apps and WeChat mini-program contexts, handling session management and user state across both environments.

How do I manage user sessions and refresh user state with the CloudBase JS SDK?

The CloudBase JS SDK provides built-in methods for session handling, getting and updating user data, linking identities, and refreshing user state to maintain active authentication across your web application.