https://github.com/nagipragalathan/reclaim-sdk_amrithaproject
https://github.com/nagipragalathan/reclaim-sdk_amrithaproject
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/nagipragalathan/reclaim-sdk_amrithaproject
- Owner: NagiPragalathan
- Created: 2023-04-03T15:30:15.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-04-04T05:22:03.000Z (over 2 years ago)
- Last Synced: 2025-02-11T04:11:30.847Z (8 months ago)
- Language: TypeScript
- Size: 429 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Reclaim-SDK
The SDK to integrate third party applications with [Reclaim Protocol](https://questbook.gitbook.io/reclaim-protocol/)## Install
```
npm i @reclaimprotocol/reclaim-sdk
```## Getting started
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](/src/types/index.ts)
```
// 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: {}
}
]
)```
## Example
Check the [examples](/examples/) folder to run a sample project using Reclaim-sdk