The SDK to integrate third party applications with Reclaim Protocol
npm i @reclaimprotocol/reclaim-sdk
To connect to Reclaim Protocol instantiate Reclaim class and call connect
method to connect your application. connect
method accepts the application name and the provider that will be used to create the claim.
Check the providers available here
// callbackUrl is triggered when user submits the claim on Reclaim app
const reclaim = new Reclaim(callbackUrl)
const connection = reclaim.connect(
'application name',
[
{
provider: 'google-login',
params: {}
}
]
)
Check the examples folder to run a sample project using Reclaim-sdk