A single skill that helps design and implement CloudBase Auth v2 using Web SDK, Node SDK, and HTTP APIs, including login methods, tokens, and best practices.
Use this skill whenever the task involves authentication or user identity in a CloudBase project, for example:
@cloudbase/[email protected]) on the frontendIf the task is not about authentication (e.g. only about database or storage), this skill is probably not needed.
CloudBase Auth v2 provides:
This SKILL.md acts as a launcher. For deeper details, read the linked files only as needed.
concepts/overview.md – what CloudBase Auth v2 is, high-level architecture, and where to configure it.concepts/login_methods.md – supported login methods, when to use each, and tradeoffs.concepts/user_accounts_and_roles.md – internal vs external vs anonymous users, UIDs, and multi-account linking.concepts/tokens_and_sessions.md – access_token vs refresh_token, v1 vs v2, and validation.@cloudbase/[email protected])web-sdk/web_quickstart.md – install/init SDK, get auth instance, basic sign-up/sign-in flow.web-sdk/web_login_flows.md – concrete flows for:
web-sdk/captcha_and_rate_limits.md – when captchas are triggered, how to integrate the captcha adapter + UI, and how to handle errors.web-sdk/web_best_practices.md – avoiding redundant logins, login-state persistence, and common UX patterns.node-sdk/node_overview_and_user_info.md – using the Node SDK to get user info, end-user info, query users, and read client IP.node-sdk/node_custom_login_ticket.md – issuing custom login tickets on the server and integrating with your own user system.http-api/http_overview.md – the HTTP API surface for auth and how to discover endpoints.http-api/http_login_and_token_flows.md – high-level flows for sign-in, sign-up, anonymous login, token grant/refresh/revoke, and user operations over HTTP.troubleshooting/faq.md – common questions and pitfalls: anonymous vs unauthenticated, token expiry, verification limits, etc.When working on a CloudBase auth task, follow this sequence:
Clarify the scenario
Load only the relevant conceptual context
concepts/overview.mdconcepts/login_methods.mdconcepts/user_accounts_and_roles.mdconcepts/tokens_and_sessions.md only if token behavior or migration is important to the task.Jump to the relevant implementation section
web-sdk/web_quickstart.md and then the specific flow file (e.g. web-sdk/web_login_flows.md, web-sdk/captcha_and_rate_limits.md).node-sdk/ files.http-api/ files.Design first, then code
Use troubleshooting only when needed
troubleshooting/faq.md when the user has issues like “anonymous vs not logged in”, unexpected expiration, or captcha errors.Keep this file short in context. Load deeper files selectively based on the user’s question to keep the context window efficient.