New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

persona-react

Package Overview
Dependencies
Maintainers
0
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

persona-react

React bindings for the Persona Inquiry Flow JavaScript SDK.

  • 5.1.3
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
13K
increased by0.84%
Maintainers
0
Weekly downloads
 
Created
Source

Persona Inquiry React SDK

The official React bindings for the Persona Inquiry JavaScript SDK.

Demo

Table of Contents

Documentation

The module provides React bindings for the Persona embedded flow.

Getting Started

npm install persona-react

To open the flow you must create a Client object.

import React from 'react';
import PersonaReact from 'persona-react';

const MyComponent = () => {
  return (
    <PersonaReact
      // This refers to a production demo template owned by Persona
      templateId='itmpl_Ygs16MKTkA6obnF8C3Rb17dm'
      environment='sandbox'
      onComplete={({ inquiryId, status, fields }) => console.log('onComplete')}
      onCancel={({ inquiryId, sessionToken }) => console.log('onCancel')}
      onError={(error) => console.log(error)}
    />
  );
};

Contributing

Please see Contributing for guidelines and instructions for local development.

License

MIT

FAQs

Package last updated on 17 Dec 2024

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