Expo SDK
Usage
Learn how to integrate and use Reclaim Protocol in your React Native Expo app, from initialization to handling proof requests and responses.
Prerequisites
Before implementing the Reclaim Protocol SDK in your React Native Expo application, ensure you have:
- Installed the Reclaim Protocol SDK (detailed instructions in the Installation Guide)
- Obtained your credentials from the Reclaim Developer Portal:
- Application ID
- Application Secret
- Provider ID
Security Notice: Never include your Application Secret in client-side code or version control systems.
Implementation Guide
1. Import Required Dependencies
Start by importing the necessary React Native, Expo, and Reclaim Protocol components:
2. SDK Initialization
Configure the SDK with your credentials:
Replace the placeholder credentials with your actual values from the Reclaim Developer Portal.
3. Request URL Generation
Create a verification request URL for users:
4. Verification Session Management
Set up the verification session listener:
5. React Native Expo Component Implementation
The following component demonstrates a complete integration of the Reclaim Protocol:
Advance Usage
You can check out available functions in the SDK in the Advance Options guide