Skip to content

reclaimprotocol/websdk-demo

Reclaim Protocol - Web SDK Next.js Example

This is an example Next.js application demonstrating how to use the Reclaim Protocol WebSDK

Getting Started

Prerequisites

  • Node.js 18+ installed
  • Reclaim Protocol App ID and App Secret

You can obtain these details from the Reclaim Developer Portal.

Installation

  1. Clone or navigate to this directory:
cd example
  1. Install dependencies:
npm install
  1. Configure environment variables:

Copy .env.example to .env.local and fill in your Reclaim credentials:

cp .env.example .env.local

Edit .env.local:

NEXT_PUBLIC_RECLAIM_APP_ID=your_app_id_here
NEXT_PUBLIC_RECLAIM_APP_SECRET=your_app_secret_here
NEXT_PUBLIC_WEBSDK_URL=websdk_url

Adding Providers

To add providers to your application, edit the src/config/providers.ts file:

you can find the providerId in the dev.reclaimprotocol.org dashboard under your app page.

export const providers: Provider[] = [
  {
    providerId: "your-provider-id-here",
    providerName: "Your Provider Name"
  },
];

Running the Application

Start the development server:

npm run dev

Open http://localhost:3000 with your browser to see the application.

Building for Production

Build the application:

npm run build

Start the production server:

npm start

About

No description, website, or topics provided.

Resources

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published