Example
This guide will walk you through the fundamental steps to integrate Reclaim's proof verification system into your Flutter application.
Prerequisites
Before you begin integrating the Reclaim SDK into your Flutter application, ensure you have:
- Installed the Reclaim SDK (see Installation Guide)
- Obtained your credentials from the Reclaim Developer Portal:
- Application ID
- Application Secret
- Provider ID
Security Notice: Never expose your Application Secret in client-side code. This credential should be kept secure and only used in server-side operations.
Implementation Guide
1. Import Required Dependencies
Start by importing the necessary packages in your Dart file:
2. SDK Initialization
Initialize the Reclaim SDK with your credentials:
Replace the placeholder credentials with your actual values obtained from the Reclaim Developer Portal.
3. Generate Verification Request URL
Create a URL that users will use to initiate the proof request process. This URL redirects users to the Reclaim Verifier App through either an app clip or instant app flow:
4. URL Launch Implementation
Add the url_launcher
package to your project by including it in your pubspec.yaml
:
Implement the URL launcher to open the verification request in an external browser:
5. Verification Session Management
Implement the verification session handlers:
For detailed information about the proof object structure, see the Advanced Configuration documentation.
[Rest of the documentation remains unchanged as it contains important implementation details and code examples]
Key Concepts and Best Practices
-
Security Considerations
- Keep credentials secure
- Implement proper error handling
- Use backend validation for sensitive operations
-
User Experience
- Provide clear feedback during the verification process
- Handle edge cases gracefully
- Implement proper loading states
-
Error Handling
- Implement comprehensive error handling
- Provide meaningful error messages
- Log errors appropriately for debugging
Next Steps
- Explore Advanced Configuration options for customization
- Review Best Practices for optimal implementation
- Join our Telegram community for support and updates
While this guide covers basic implementation, production applications should include additional error handling, state management, and integration with your application's architecture.
Need help? Join our developer community or refer to our comprehensive documentation for more detailed guidance.