Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-native-plaid-link

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-plaid-link

React Native Plaid Link Webview authenticator

  • 1.4.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
177
decreased by-5.35%
Maintainers
1
Weekly downloads
 
Created
Source

react_native_plaid_link_auth

Since Plaid.com doesn't have support for React Native and a lot o devs asked for an implementation, I've built this lib that adds support for Plaid authentication using a Webview and Plaid Link

Usage

yarn add react-native-plaid-link
yarn link react-native-webview
API
PropTypedefaultValue
publicKey (required)string
onMessage (required)function
env (required)string
product (required)string
clientNamestring
selectAccountbooleanfalse
tokenstring
userEmailstring
userLegalNamestring
webhookstringhttp://batman.codes
WebView props--
render() {
  return <PlaidAuthenticator
    onMessage={this.onMessage}
    publicKey="YOUR_PLAID_PUBLIC_KEY"
    env="sandbox"
    product="auth,transactions"
    clientName="Catalin Miron"
    selectAccount={false}
  />
}

onMessage = (data) => {
  this.setState({data})
}
Returned data object
{
  "action": "plaid_link-undefined::connected",
  "metadata": {
    "account": {
      "id": null,
      "name": null
    },
    "account_id": null,
    "public_token": "public-sandbox-e697e666-9ac2-4538-b152-7e56a4e59365",
    "institution": {
      "name": "Chase",
      "institution_id": "ins_3"
    }
  }
}

For more information please read their docs

Type of actions:

StatusDescription
connectedUser completed the Link flow
requires_questionsUser prompted to answer security question(s)
requires_selectionsUser prompted to answer multiple choice question(s)
requires_codeUser prompted to provide a one-time passcode
choose_deviceUser prompted to select a device on which to receive a one-time passcode
requires_credentialsUser prompted to provide credentials for the selected financial institution or has not yet selected a financial institution
institution_not_foundUser exited the Link flow after unsuccessfully (no results returned) searching for a financial institution

For Sandbox mode the credentials are:

username: user_good
password: pass_good
Get your plaid API key
  • Go to Plaid dashboard and Sign in. image
  • Add Plaid to your app image
  • Copy your Plaid public_key
Questions?

Feel free to contact me:

Twitter: @mironcatalin Website: http://batman.codes

Keywords

FAQs

Package last updated on 22 Oct 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc