Quickstart Usage
This is the fastest way to get an prototype running and experience the flow. However this is NOT the recommended mode for pushing to production.
Prerequisites
- Install the React libraries using the Installation guide
- Get the
APPLICATION_ID
,APPLICATION_SECRET
andPROVIDER_ID
using the API Key guide
Quickstart
There are two ways to implement the Reclaim Protocol on your frontend.
- Using the
triggerReclaimFlow()
method (Recommended) - Using the
getRequestUrl()
method
1. Using the triggerReclaimFlow()
method (Recommended)
This method automatically detects the user's environment and chooses the best verification method for the user.
- Browser extension for desktop users (if installed)
- QR code popup for desktop users (if extension is not installed)
- AppClip/InstantApp redirection for mobile users
2. Using the getRequestUrl()
method
This method generates a verification request URL that user needs to visit to start the session.
Get production Ready
For production usecases, you might want to make sure that the proofs are sent directly to your backend - so that the user doesn't have an opportunity to tamper with the data. Refer to the Backend and Fullstack guide for more details.