reclaimprotocol / reclaim-js-sdk

JavaScript SDK for easy integration of Reclaim Protocol that enables authenticated web data export via HTTPS and zero-knowledge proofs
20 stars 2 forks source link

Feature Request: Dynamic Provider ID Input and Configurable SDK Parameters #4

Open AbdulRashidReshamwala opened 1 week ago

AbdulRashidReshamwala commented 1 week ago

The current version of the example only supports a single hard-coded provider ID, and the user has to manually add the app ID and app secret into the environment variables. It would be more user-friendly to have an example app where users can input and tweak all available parameters for the SDK dynamically via input fields

Additionally, it would be valuable to include an option to copy the code for the current configuration, allowing users to easily replicate or share their setup.

Proposed Solution:

Dynamic Provider ID and Parameter Input:

Create a UI form that allows users to input and modify the following parameters: Provider ID App ID App Secret Any other SDK configuration options available Ensure these values are dynamically passed into the SDK, so the example can be run with various configurations. Something similar to the UI below.


Screenshot 2024-10-01 at 3 16 25 PM

Code Copy Feature:

Add a button to copy the generated configuration code based on the current inputs in the UI. This should generate a code snippet that reflects the user's custom configuration for easy copy-paste into their own projects.

Benefits: