You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: config/.claude/skills/auth-web/SKILL.md
+7-9Lines changed: 7 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -65,7 +65,9 @@ Use the same CDN address as `web-development`. Prefer npm installation in modern
65
65
66
66
## Prerequisites
67
67
68
-
- Automatically use `auth-tool-cloudbase` to check app-side auth readiness via `queryAppAuth` / `manageAppAuth`, then get the `publishable key` and configure login methods.
68
+
- Use `envQuery(action="info")` or `envQuery(action="list")` to confirm the real CloudBase environment ID before any auth setup. Do not leave the placeholder `env` literal in code, console URLs, or tool calls.
69
+
- If the current MCP session is not already bound to that environment, call `auth(action="set_env", envId="<actual-env-id>")` first so `queryAppAuth` / `manageAppAuth` operate on the correct app.
70
+
- Automatically use `auth-tool-cloudbase` to check app-side auth readiness: `queryAppAuth(action="getLoginConfig")` for login methods, `manageAppAuth(action="patchLoginStrategy")` when a required method is off, and `queryAppAuth(action="getPublishableKey")` or `manageAppAuth(action="ensurePublishableKey")` for the publishable key.
69
71
- If `auth-tool-cloudbase` failed, let user go to `https://tcb.cloud.tencent.com/dev?envId={env}#/env/apikey` to get `publishable key` and `https://tcb.cloud.tencent.com/dev?envId={env}#/identity/login-manage` to set up login methods
70
72
71
73
### Parameter map
@@ -88,9 +90,9 @@ Use the same CDN address as `web-development`. Prefer npm installation in modern
88
90
importcloudbasefrom'@cloudbase/js-sdk'
89
91
90
92
constapp=cloudbase.init({
91
-
env:`env`, // CloudBase environment ID
93
+
env:`env`, //replace with the real CloudBase environment ID from envQuery
0 commit comments