$npx -y skills add catalystbyzoho/agent-skills --skill catalyst-authenticationCatalyst Authentication — user login/signup, ZAID, Web SDK auth flows, and OAuth token management via Connections. Trigger on 'authentication', 'login', 'signup', 'getCurrentUser', 'ZAID', 'isUserAuthenticated', 'signOut', 'Connections', or 'getAccessToken'. You MUST load this sk
| 1 | ## How It Works |
| 2 | |
| 3 | 1. **Identify flow type** — Hosted login (redirect to Catalyst login page), embedded login (custom UI), or backend `getCurrentUser` check. |
| 4 | 2. **Load `references/auth-basics.md`** — for signup/login flows, ZAID gotcha, hosted vs embedded login, and common auth errors. |
| 5 | 3. **ZAID warning** — ZAID differs between Development and Production. This is the #1 auth issue in production. Always verify the environment. |
| 6 | 4. **Security Rules** — If the query involves controlling who can invoke a function, route to `catalyst-functions` skill and its `references/functions-basics.md` Security Rules section. Security Rules has two parameters: (a) **`methods`** — which HTTP methods (GET/POST/PUT/DELETE/PATCH) are enabled for the function (removing a method blocks that verb entirely), and (b) **`authentication`** — a single binary flag (`optional` = public, `required` = authenticated users only) applied **function-wide, not per-method**. For role-based data access control, route to DataStore Scopes and Permissions (Console → Table → Scopes and Permissions). |
| 7 | 5. **OAuth / Connections** — Load `references/connections.md` for external API OAuth token management (Zoho or third-party). |
| 8 | |
| 9 | ## Security Checklist |
| 10 | |
| 11 | - **ZAID is environment-specific.** The Development ZAID is different from the Production ZAID. Social logins (Google, Facebook, LinkedIn, Microsoft) configured in Development MUST be reconfigured with the Production ZAID and production app domain before going live — using the wrong ZAID causes all social logins to silently fail in production. |
| 12 | - **DataStore permissions are separate from function-level auth.** Requiring authentication in Security Rules only controls who can call the function. App User table permissions (Console → Table → Scopes and Permissions) separately control which DataStore operations authenticated users can perform. |
| 13 | |
| 14 | ## Triggers |
| 15 | |
| 16 | Use this skill for: "authentication", "user management", "login", "signup", `getCurrentUser`, "ZAID", `registerUser`, `isUserAuthenticated`, `signOut`, "hosted login", "embedded login", "Connections", "OAuth token", `getConnector`, `getAccessToken`, "Security Rules", "App User", "credentials include", or "auth redirect". |
| 17 | |
| 18 | ## References |
| 19 | |
| 20 | | Reference | Load when the query is about… | |
| 21 | |-----------|-------------------------------| |
| 22 | | `references/auth-basics.md` | User signup/login, getCurrentUser, Web SDK auth flows, ZAID gotcha, hosted vs embedded login, common auth errors | |
| 23 | | `catalyst-functions` skill | Security Rules — function invocation control (`methods`, `authentication: optional/required`) | |
| 24 | | `references/connections.md` | OAuth token management for external APIs — getConnector, getAccessToken, Zoho and third-party service connections | |