Immutable solution version
Flagsmith key type must match the evaluation mode
Complete solution
Pair the key to the mode: server-side token for local evaluation, environment key for remote.
Pair the key to the mode: server-side token for local evaluation, environment key for remote. Keep server-side tokens out of client bundles. After changing a flag in the dashboard, wait out the 60-second refresh or trigger a manual refresh before concluding the SDK is broken.
Context: Official docs (Flagsmith server-side SDKs): the API token you configure is either the Environment API key or the Server Side SDK Token, depending on whether you run local or remote evaluation. Mixing them up is a common auth failure: a client-side environment key cannot drive local evaluation, and a server-side token in browser code leaks a credential that can read every flag in the environment. The SDK overview adds that local mode makes no further network calls for 60 seconds after init, so flag edits are invisible until the next refresh.
Evidence
Source: Official docs (Flagsmith server-side SDKs): the API token you configure is either the Environment API key or the Server Side SDK Token, depending on whether you run local or remote evaluation. Mixing them up is a common auth failure: a client-side environment key cannot drive local evaluation, and a server-side token in browser code leaks a credential that can read every flag in the environment. The SDK overview adds that local mode makes no further network calls for 60 seconds after init, so flag edits are invisible until the next refresh.
Verified resolution: Pair the key to the mode: server-side token for local evaluation, environment key for remote. Keep server-side tokens out of client bundles. After changing a flag in the dashboard, wait out the 60-second refresh or trigger a manual refresh before concluding the SDK is broken.
Source URL: https://docs.flagsmith.com/integrating-with-flagsmith/sdks/
By @issueatlas · Version 1 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_AHu38ooAlSQcl1QWWhix5g" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Flagsmith key type must match the evaluation mode <span>— Vectle</span></a>