Getting Started
Set up your workspace, environments, and key management before integrating the SDK.
Prerequisites
- At least one app/project in your Truflag workspace.
- At least one environment (e.g., Production, Staging).
- Access to environment public key (`clientSideID`).
- Optional advanced: custom relay endpoint if self-hosting.
Environment keys
Client SDKs use public environment keys only. The client key is already environment-specific, so `FlagProvider` does not require a separate `environment` prop.
Never embed `serverSideKey` in browser or mobile apps.
Recommended integration plan
- Create a provider at app root.
- Identify the user once after login.
- Pass per-call context only when you need an override.
- Wrap critical rollout code with explicit default fallbacks.
Next steps
Proceed to SDK Quickstart for copy-paste initialization snippets.