react component with badgerwallet and QR code support for CashID by Jonathan Silverblood
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
dist
examples/src
src
.babelrc
.gitignore
.npmignore
README.md
package-lock.json
package.json
webpack.config.js

README.md

CashID React component

React component to generate QR code and badgerwallet button using CashID

badgercashid

Installation

grab from NPM

npm i react-cashid

Usage

  import CashId from 'react-cashid';

  <CashId
    domain="domain.com"
    path="/api/test"
    action="login"
    data="newsletter"
    metadata={{
      required: {
        identity: ['name', 'family'],
        position: ['country'],
        contact: ['email']
      },
      optional: {
        identity: ['age', 'gender'],
        position: ['city']
      }
    }}
    color="orange"
  />

action, data, and metadata are optional.

Read more about the CashID Specification.

Required

you must be using either the PHP or Javascript library for CashID on your backend.