Advanced Options
Backend Verification
Learn how to create session and verify with Reclaim Backend SDKs
As best practice, we strongly recommend verifying proofs generated from client-side SDKs with a Reclaim Protocol Backend SDK.
Step-by-Step Guide
1. Install the SDK
Make sure you have installed the SDKs by following the instructions on the Installation page.
2. Prepare your variables
- You will need to have the
APPLICATION_IDandAPPLICATION_SECRETfrom dev.reclaimprotocol.org. - You will also need to add providers to your application, keep the
PROVIDER_IDhandy too. - The providers you add to the application, will be the providers you will be able to ask the user to generate a proof for.
- Make sure you add to your Application from the dev tool.
3. Get request URL from Backend SDK
- Set the
useAppClipoption totruewhen initializing proof request:ReclaimProofRequest.init. - Get the
request_urlby callinggetRequestUrlmethod on proof request object.
4. Generate proof on client mobile
- Your native mobile application should use the
request_urlfrom the backend and start verification with this url.
Start verification with request_url using the following sample code:
Send result.proofs to the backend for verification and further processing
5. Verify proofs at backend
- Mobile application (client) should send the proof to your backend for verification and then processing.
- Use
verifyProoffrom the reclaim backend sdk for verifying the proof received from the client.