Fullstack Usage
This guide demonstrates how to integrate the Reclaim Protocol JavaScript SDK into a fullstack application securely. We'll cover both the backend and frontend implementations.
Video Walkthrough
Prerequisites
- Install the React libraries using the Installation guide
- Get the
APPLICATION_ID
,APPLICATION_SECRET
andPROVIDER_ID
using the API Key guide
Implementation Guide
1. Backend Implementation
For a detailed backend implementation using Node.js and Express, please refer to the Backend guide.
If you are deploying on localhost, be sure to use ngrok to make it visible on a public url.
This guide will assume the backend has been deployed.
2. Frontend Implementation
Here's a step-by-step implementation showing how to initialize and use the Reclaim SDK in your frontend application:
Setup the variables and imports.
Create the function to create verification request, that calls the backend
Initialize the request when appropriate, e.g. on page loads
Once requestUrl
is set, display the QR or button for user to initiate verification.