node package manager
Don’t reinvent the wheel. Reuse code within your team. Create a free org »

react-plaid-link

react-plaid-link

This is still a WIP – stay tuned for updates, and please feel free to open a PR as you see fit

A simple React component for easy integration with the Plaid Link drop-in module

Install

npm install react-plaid-link

Example Usage

var React = require('react');
var PlaidLink = require('react-plaid-link');
 
var App = React.createClass({
  handleOnSuccess: function(token, metadata) {
    // send token to client server
  },
  render: function() {
    return (
      <PlaidLink
        publicKey="PLAID_PUBLIC_KEY"
        product="auth"
        env="tartan"
        clientName="plaidname"
        onSuccess={this.handleOnSuccess}
        />
    );
  }
})

All Props

Please refer to the official Plaid Link docs for a more holistic understanding of the various Link options.

<PlaidLink
  clientName="plaidname"
  env="tartan"
  institution={null}
  publicKey="test_key"
  longtail={true}
  product="auth"
  apiVersion={'v1' | 'v2'}
  token="test,wells,connected"
  selectAccount={true}
  webhook="https://webhooks.test.com"
  onSuccess={this.handleOnSuccess}
  onExit={this.handleOnExit}
  onLoad={this.handleOnLoad}
  />

Contributing

Run tests:

make test