npx skills add ...
npx skills add catalystbyzoho/agent-skills --skill catalyst-authentication
Catalyst Authentication — user login/signup, ZAID, Web SDK auth flows, OAuth token management via Connections, third-party authentication (Okta, Auth0, Duo, custom IdP), social logins (Google, Facebook, LinkedIn, Microsoft), generateCustomToken, signinWithJwt. Trigger on 'authentication', 'login', 'signup', 'getCurrentUser', 'ZAID', 'isUserAuthenticated', 'signOut', 'Connections', 'getAccessToken', 'third-party auth', 'social login', 'Google login', 'signinWithJwt', or 'generateCustomToken'. You MUST load this skill whenever implementing user login or protecting data — ZAID differs between Development and Production and is the #1 cause of auth failures after environment promotion. For Security Rules (function invocation control), route to catalyst-functions.
npx skills add catalystbyzoho/agent-skills --skill catalyst-authentication
catalyst serveAuth works locally only when served through catalyst serve. NEVER use the native dev server (npm run dev, vite, next dev, ng serve, etc.) for auth development — the Catalyst auth middleware, cookie injection, and /__catalyst/sdk/init.js are only available through catalyst serve.
getCurrentUser check.references/auth-basics.md — for signup/login flows, ZAID gotcha, hosted vs embedded login, and common auth errors.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).references/connections.md for external API OAuth token management (Zoho or third-party).generateCustomToken, or signinWithJwt, load references/auth-thirdparty.md.Use this skill for: "authentication", "user management", "login", "signup", getCurrentUser, "ZAID", registerUser, isUserAuthenticated, signOut, "cross-domain logout", "hosted login", "embedded login", "Connections", "OAuth token", getConnector, getAccessToken, "Security Rules", "App User", "credentials include", "auth redirect", "third-party auth", "third-party authentication", "social login", "Google login", "Facebook login", "LinkedIn login", "Microsoft login", signinWithJwt, generateCustomToken, "Okta", "Auth0", "Duo", "custom IdP".
| Reference | Load when the query is about… |
|---|---|
references/auth-basics.md | User signup/login, getCurrentUser, Web SDK auth flows, ZAID gotcha, hosted vs embedded login, common auth errors |
references/auth-thirdparty.md | Third-party auth services (Okta, Auth0, Duo), social logins (Google/Facebook/LinkedIn/Microsoft), generateCustomToken, signinWithJwt, token flow, console setup |
catalyst-functions skill | Security Rules — function invocation control (methods, authentication: optional/required) |
references/connections.md | OAuth token management for external APIs — getConnector, getAccessToken, Zoho and third-party service connections |