Installation
Install the DCID SDK using your preferred package manager.
Package Installation
Platform-Specific Setup
The SDK requires additional configuration depending on your target platform.
React Native
React Native projects require native dependencies for secure storage and the HSM SDK.
**Step 1** — Install peer dependencies:
**Step 2** — Install the HSM native SDK:
**Step 3** — iOS Setup:
Open your `ios/Podfile` and ensure you're using iOS 15.1 or later:
The `metakeep-react-native-sdk` pod is auto-linked by React Native — no manual `pod` entry is needed.
After updating the Podfile, install the pods:
**Step 4** — Android Setup:
Browser Extension
Browser extensions require specific manifest permissions and CSP configuration.
Web Application
Web applications may need additional bundler configuration for WebAssembly support.
TypeScript Configuration
The SDK includes TypeScript definitions. Ensure your `tsconfig.json` includes:
Environment Configuration
Create environment variables for your HSM application IDs:
Verifying Installation
Create a simple test to verify the SDK is installed correctly:
Next Steps
- Follow the Quick Start guide to build your first integration
- Read the platform-specific guide for detailed setup:
- React Native Guide
- Browser Extension Guide
- Web Application Guide