[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6MFKW56DQPT9148A4TN7W4N":3,"skill-same:01M6MFKW56DQPT9148A4TN7W4N":75},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":41,"linkOnly":42,"markdownContent":43,"markdownBody":44,"frontMatter":45,"refName":51,"commitSha":52,"skillDirectory":53,"forksCount":54,"repositoryHtmlUrl":55,"repositoryHomepageUrl":56,"ownerHtmlUrl":57,"ownerBlogUrl":58,"ownerDescription":59,"updatedAt":60,"install":61,"resources":74},"01M6MFKW56DQPT9148A4TN7W4N","cometchat-react-v7-production",null,"Ship a CometChat React v7 integration safely — server-minted auth tokens instead of the Auth Key, correct env prefixes per bundler, bundle hygiene, and a pre-launch checklist. Triggers: 'is this production ready', 'auth token instead of auth key react', 'secure my cometchat react setup', 'production build config react', 'going live checklist react', 'harden cometchat before launch'.","hashgraph-online\u002Fawesome-codex-plugins","hashgraph-online","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F160371962?v=4","01M6CNB6NRJVNNGN14TR01Q6D3","HOL (Hashgraph Online)","01M6JT1HSKKG9V68KQAQGBA7XP",1575,"MIT","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fcometchat\u002Fcometchat-skills\u002Fskills\u002Fcometchat-react-v7-production\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40],"react","cometchat","cometchat react v7 production","Production","auth tokens","security","verified","bundler","my","pre-launch","live","token","next","ready","router","ship","astro","server","deployment","secure","config","auth","2026-11-10 10:12:30",false,"---\nname: cometchat-react-v7-production\ndescription: \"Ship a CometChat React v7 integration safely — server-minted auth tokens instead of the Auth Key, correct env prefixes per bundler, bundle hygiene, and a pre-launch checklist. Triggers: 'is this production ready', 'auth token instead of auth key react', 'secure my cometchat react setup', 'production build config react', 'going live checklist react', 'harden cometchat before launch'.\"\nlicense: \"MIT\"\ncompatibility: \"@cometchat\u002Fchat-uikit-react ^7 (7.1.x–7.2.x verified); React 18–19; Vite \u002F Next.js \u002F CRA \u002F React Router \u002F Astro\"\nmetadata:\n  author: \"CometChat\"\n  version: \"1.0.0\"\n  tags: \"cometchat react v7 production security auth-token hardening deployment\"\n---\n\n> **Ground truth:** `@cometchat\u002Fchat-uikit-react@7`. The auth-token \u002F login API is FETCHED from the docs via `cometchat-react-v7-core\u002Freferences\u002Fdocs-map.md` (`\u002Fui-kit\u002Freact\u002Fintegration-react` + the JS SDK auth pages); the REST auth-token endpoint is `{DOCS_BASE}\u002Frest-api\u002Fauth-tokens`. **The React UI Kit docs have no single production-hardening page** — this checklist is the pack's own guidance from `RULES.md` §4 (Credentials) + what the kit ships, labelled as such, not presented as documented. Tracked DOCS GAP.\n\n## Companion skills (read first)\n- `cometchat-react-v7-core` — `references\u002Fsetup-credentials.md` + `references\u002Flifecycle.md` cover the dev credential flow this replaces and the init→login→render order.\n- `cometchat-react-v7-patterns` — the per-bundler env prefix + build specifics referenced below.\n- `cometchat-security` — the enterprise auth model this client-side hardening plugs into: wiring your IdP \u002F SSO into the token flow (your IdP → your server → mint the CometChat auth token; CometChat is **not** an IdP), token expiry\u002Frefresh + re-login, RBAC roles + group (SBAC) scopes, and Auth Key vs auth token vs REST API Key. Load it for a security review or any SSO question.\n\n## Use this skill when\nMoving off the development setup: going live, a security review, or \"is this safe to ship.\"\n\n## The one thing that matters\n**Never ship the Auth Key in the browser bundle.**\n\nThe Auth Key can mint a session for **any user in your app**. Every `VITE_`\u002F`NEXT_PUBLIC_`\u002F`REACT_APP_`\u002F`PUBLIC_`-prefixed value is compiled into JavaScript your users download — so an Auth Key there is public. Anyone can read it, log in as any UID, and read every conversation.\n\n| | Development | Production |\n| --- | --- | --- |\n| Login | `CometChatUIKit.login(uid)` | `CometChatUIKit.loginWithAuthToken(token)` |\n| Auth Key | in the client env | **absent from the bundle** |\n| Token source | n\u002Fa | your backend, per authenticated user |\n| REST API Key | never client-side | server only |\n\n## The production login flow\n1. Your app authenticates the user (your own auth — CometChat is not an identity provider).\n2. Your **server** calls CometChat's REST API with the **REST API Key** to mint an auth token for that user's UID (`{DOCS_BASE}\u002Frest-api\u002Fauth-tokens`).\n3. The server returns the token to the browser over an authenticated request.\n4. The app calls `loginWithAuthToken(token)`.\n\n```tsx\n\u002F\u002F the endpoint derives the UID from the SERVER session — never from a query param\nconst res = await fetch(\"\u002Fapi\u002Fcometchat-token\", { credentials: \"include\" });\nconst { authToken } = await res.json();\nawait CometChatUIKit.loginWithAuthToken(authToken);\n```\nAccepting `?uid=` (or any client-supplied UID) lets a caller impersonate anyone. The UID must come from the server-side session.\n\n## Env prefix — do NOT ship the key\nInit reads the Auth Key from the client env in development. Production must set it empty and log in with a token instead. The prefix is bundler-specific (`cometchat-react-v7-patterns`): Vite `VITE_`, Next `NEXT_PUBLIC_` (`.env.local`), CRA `REACT_APP_`, Astro `PUBLIC_`. App ID and Region are not secrets — they identify the app; the Auth Key is the secret. **Grep the built bundle to be certain:**\n```bash\nnpm run build && grep -rll \"\u003Cyour-auth-key>\" dist\u002F build\u002F .next\u002F 2>\u002Fdev\u002Fnull && echo \"LEAK\" || echo \"clean\"\n```\nRun that in CI — a stray `.env` or a wrong prefix ships the key silently.\n\n## Also before launch\n- **Users are created server-side**, as part of your signup — not from the browser (no `createUser` with the Auth Key in client code).\n- **Log out properly**: `await CometChatUIKit.logout()`, then clear derived React state and unregister push tokens (`cometchat-react-v7-push`).\n- **HTTPS everywhere** — required for calls (`getUserMedia`) and push.\n- **Pin the kit** to an exact or `~` range so a minor cannot change component behaviour under you.\n- **Keep `CometChatErrorBoundary`** wrapping the surface so a render error shows a fallback, not a white screen (it is not the initializer — init\u002Flogin still run first).\n- **SSR\u002FStrictMode:** guard init+login so React 18\u002F19 StrictMode's double-invoke does not race two logins (`cometchat-react-v7-patterns`); never init during SSR — gate on the client.\n- **Region must match** the dashboard app in every build.\n- **Enable dashboard extensions\u002FAI on the PRODUCTION app**, not just dev.\n\n## Pre-launch checklist\n- [ ] Auth Key absent from the production bundle (grep-verified in CI)\n- [ ] `loginWithAuthToken` in production; UID from the server session\n- [ ] REST API Key server-side only\n- [ ] Correct env prefix for the bundler; `.env` gitignored\n- [ ] HTTPS, valid certificate\n- [ ] Logout clears session, React state and push tokens\n- [ ] Kit version pinned; `CometChatErrorBoundary` in place\n- [ ] Dashboard extensions\u002FAI enabled for the production app\n- [ ] Tested against the production app's credentials\n\n## Common pitfalls\n1. **Auth Key in the production bundle** — the critical one; wrong env prefix is the usual cause.\n2. **Token endpoint trusting a client-supplied UID** — impersonation.\n3. **Init\u002Flogin run during SSR or twice under StrictMode** — races and \"already logged in\" errors.\n4. **Dashboard configured on the dev app only** — features silently missing in production.\n5. **No logout teardown** — the next user inherits the session or the push token.\n\n## Verify it works\nProduction build contains no Auth Key (grep) · login works via token · a tampered UID is rejected by the server · logout fully clears · calls and push work over HTTPS · features enabled on the production app.\n","> **Ground truth:** `@cometchat\u002Fchat-uikit-react@7`. The auth-token \u002F login API is FETCHED from the docs via `cometchat-react-v7-core\u002Freferences\u002Fdocs-map.md` (`\u002Fui-kit\u002Freact\u002Fintegration-react` + the JS SDK auth pages); the REST auth-token endpoint is `{DOCS_BASE}\u002Frest-api\u002Fauth-tokens`. **The React UI Kit docs have no single production-hardening page** — this checklist is the pack's own guidance from `RULES.md` §4 (Credentials) + what the kit ships, labelled as such, not presented as documented. Tracked DOCS GAP.\n\n## Companion skills (read first)\n- `cometchat-react-v7-core` — `references\u002Fsetup-credentials.md` + `references\u002Flifecycle.md` cover the dev credential flow this replaces and the init→login→render order.\n- `cometchat-react-v7-patterns` — the per-bundler env prefix + build specifics referenced below.\n- `cometchat-security` — the enterprise auth model this client-side hardening plugs into: wiring your IdP \u002F SSO into the token flow (your IdP → your server → mint the CometChat auth token; CometChat is **not** an IdP), token expiry\u002Frefresh + re-login, RBAC roles + group (SBAC) scopes, and Auth Key vs auth token vs REST API Key. Load it for a security review or any SSO question.\n\n## Use this skill when\nMoving off the development setup: going live, a security review, or \"is this safe to ship.\"\n\n## The one thing that matters\n**Never ship the Auth Key in the browser bundle.**\n\nThe Auth Key can mint a session for **any user in your app**. Every `VITE_`\u002F`NEXT_PUBLIC_`\u002F`REACT_APP_`\u002F`PUBLIC_`-prefixed value is compiled into JavaScript your users download — so an Auth Key there is public. Anyone can read it, log in as any UID, and read every conversation.\n\n| | Development | Production |\n| --- | --- | --- |\n| Login | `CometChatUIKit.login(uid)` | `CometChatUIKit.loginWithAuthToken(token)` |\n| Auth Key | in the client env | **absent from the bundle** |\n| Token source | n\u002Fa | your backend, per authenticated user |\n| REST API Key | never client-side | server only |\n\n## The production login flow\n1. Your app authenticates the user (your own auth — CometChat is not an identity provider).\n2. Your **server** calls CometChat's REST API with the **REST API Key** to mint an auth token for that user's UID (`{DOCS_BASE}\u002Frest-api\u002Fauth-tokens`).\n3. The server returns the token to the browser over an authenticated request.\n4. The app calls `loginWithAuthToken(token)`.\n\n```tsx\n\u002F\u002F the endpoint derives the UID from the SERVER session — never from a query param\nconst res = await fetch(\"\u002Fapi\u002Fcometchat-token\", { credentials: \"include\" });\nconst { authToken } = await res.json();\nawait CometChatUIKit.loginWithAuthToken(authToken);\n```\nAccepting `?uid=` (or any client-supplied UID) lets a caller impersonate anyone. The UID must come from the server-side session.\n\n## Env prefix — do NOT ship the key\nInit reads the Auth Key from the client env in development. Production must set it empty and log in with a token instead. The prefix is bundler-specific (`cometchat-react-v7-patterns`): Vite `VITE_`, Next `NEXT_PUBLIC_` (`.env.local`), CRA `REACT_APP_`, Astro `PUBLIC_`. App ID and Region are not secrets — they identify the app; the Auth Key is the secret. **Grep the built bundle to be certain:**\n```bash\nnpm run build && grep -rll \"\u003Cyour-auth-key>\" dist\u002F build\u002F .next\u002F 2>\u002Fdev\u002Fnull && echo \"LEAK\" || echo \"clean\"\n```\nRun that in CI — a stray `.env` or a wrong prefix ships the key silently.\n\n## Also before launch\n- **Users are created server-side**, as part of your signup — not from the browser (no `createUser` with the Auth Key in client code).\n- **Log out properly**: `await CometChatUIKit.logout()`, then clear derived React state and unregister push tokens (`cometchat-react-v7-push`).\n- **HTTPS everywhere** — required for calls (`getUserMedia`) and push.\n- **Pin the kit** to an exact or `~` range so a minor cannot change component behaviour under you.\n- **Keep `CometChatErrorBoundary`** wrapping the surface so a render error shows a fallback, not a white screen (it is not the initializer — init\u002Flogin still run first).\n- **SSR\u002FStrictMode:** guard init+login so React 18\u002F19 StrictMode's double-invoke does not race two logins (`cometchat-react-v7-patterns`); never init during SSR — gate on the client.\n- **Region must match** the dashboard app in every build.\n- **Enable dashboard extensions\u002FAI on the PRODUCTION app**, not just dev.\n\n## Pre-launch checklist\n- [ ] Auth Key absent from the production bundle (grep-verified in CI)\n- [ ] `loginWithAuthToken` in production; UID from the server session\n- [ ] REST API Key server-side only\n- [ ] Correct env prefix for the bundler; `.env` gitignored\n- [ ] HTTPS, valid certificate\n- [ ] Logout clears session, React state and push tokens\n- [ ] Kit version pinned; `CometChatErrorBoundary` in place\n- [ ] Dashboard extensions\u002FAI enabled for the production app\n- [ ] Tested against the production app's credentials\n\n## Common pitfalls\n1. **Auth Key in the production bundle** — the critical one; wrong env prefix is the usual cause.\n2. **Token endpoint trusting a client-supplied UID** — impersonation.\n3. **Init\u002Flogin run during SSR or twice under StrictMode** — races and \"already logged in\" errors.\n4. **Dashboard configured on the dev app only** — features silently missing in production.\n5. **No logout teardown** — the next user inherits the session or the push token.\n\n## Verify it works\nProduction build contains no Auth Key (grep) · login works via token · a tampered UID is rejected by the server · logout fully clears · calls and push work over HTTPS · features enabled on the production app.\n",{"name":5,"license":15,"metadata":46,"description":7,"compatibility":50},{"tags":47,"author":48,"version":49},"cometchat react v7 production security auth-token hardening deployment","CometChat","1.0.0","@cometchat\u002Fchat-uikit-react ^7 (7.1.x–7.2.x verified); React 18–19; Vite \u002F Next.js \u002F CRA \u002F React Router \u002F Astro","main","2b63f856ce19c2a797929cacabd9e0fc936812fa","plugins\u002Fcometchat\u002Fcometchat-skills\u002Fskills\u002Fcometchat-react-v7-production",491,"https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins","https:\u002F\u002Fhol.org\u002Fplugins\u002Fbest-codex-plugins","https:\u002F\u002Fgithub.com\u002Fhashgraph-online","https:\u002F\u002Fhol.org","Open-source standards and developer tools for interoperable AI agents: discovery, identity, communication, payments, privacy and security.","2026-11-14 14:06:13",{"source":8,"skillName":5,"commands":62,"prompt":72,"zipAvailable":73},[63,66,69],{"tool":64,"command":65},"npx","npx skills add hashgraph-online\u002Fawesome-codex-plugins --skill cometchat-react-v7-production",{"tool":67,"command":68},"bunx","bunx skills add hashgraph-online\u002Fawesome-codex-plugins --skill cometchat-react-v7-production",{"tool":70,"command":71},"pnpm","pnpm dlx skills add hashgraph-online\u002Fawesome-codex-plugins --skill cometchat-react-v7-production","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fcometchat\u002Fcometchat-skills\u002Fskills\u002Fcometchat-react-v7-production\u002FSKILL.md",true,[],[76,85,93,101,109,117],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":80,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":84},"01M7DV332YQMGD8WTRJ9DZQXTB","worktable-review-with-annotations","Create, inspect, reply to, update, or resolve situated Worktable annotations. Use when feedback belongs to a Doc section, block, text range, or HTML Doc, or when the user asks to address existing review feedback and coordinate a requested artifact edit.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-review-with-annotations\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-review-with-annotations\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":89,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":84},"01M7DV2YGHCZVBEB1AHYB6CGHE","worktable-find-and-synthesize-context","Find, assess, and synthesize context from Worktable Docs and Records. Use when the user asks what a workspace contains, wants workspace-backed research, needs current facts reconciled across artifacts, or requests a cited synthesis without changing workspace state.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-find-and-synthesize-context\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-find-and-synthesize-context\u002FSKILL.md",[],[],{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":97,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":84},"01M7DV2TQN1H11ME2SAF9MXN7V","worktable-create-or-update-docs","Create, edit, rename, or maintain narrative Worktable Docs. Use for plans, decisions, briefs, notes, research syntheses, and other durable prose when the user requests a new artifact or a safe update to an existing one.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-update-docs\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-update-docs\u002FSKILL.md",[],[],{"skillNo":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":105,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":84},"01M7DV2NE452NEA8TXATKSNAJH","worktable-create-or-manage-records","Organize repeated structured information as durable Worktable Records. Use for research datasets, inventories, directories, pipelines, trackers, and other collections whose items need identity, fields, filtering, links, validation, or individual updates.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-manage-records\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-manage-records\u002FSKILL.md",[],[],{"skillNo":110,"name":111,"nameZh":6,"description":112,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":113,"sourceHtmlUrl":114,"categories":115,"keywords":116,"publishedAt":84},"01M7DV2HENRBR2KSCVM064WH0Y","worktable-create-or-manage-interactive-html","Create or improve durable visual and interactive artifacts in Worktable. Use for dashboards, trackers, calculators, mini apps, slide presentations, and other requests that benefit from a polished HTML Doc.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-manage-interactive-html\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-manage-interactive-html\u002FSKILL.md",[],[],{"skillNo":118,"name":119,"nameZh":6,"description":120,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":121,"sourceHtmlUrl":122,"categories":123,"keywords":124,"publishedAt":84},"01M7DV2CADR5R7RQFFYPNAGR9Y","worktable-collaborate-threads","Read, answer, and hand off messages through durable Worktable threads with users or other authenticated participants. Use when the user asks to check addressed messages, reply to a participant, continue a thread, request another agent's help, wait briefly for a response, or watch for comments and messages sent to the agent.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-collaborate-threads\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-collaborate-threads\u002FSKILL.md",[],[]]