Advance 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_ID
andAPPLICATION_SECRET
from dev.reclaimprotocol.org. - You will also need to add providers to your application, keep the
PROVIDER_ID
handy 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
useAppClip
option totrue
when initializing proof request:ReclaimProofRequest.init
. - Get the
request_url
by callinggetRequestUrl
method on proof request object.
4. Generate proof on client mobile
- Your native mobile application should use the
request_url
from 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
verifyProof
from the reclaim backend sdk for verifying the proof received from the client.