šŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →
Socket
Sign inDemoInstall
Socket

persona-react

Package Overview
Dependencies
Maintainers
2
Versions
9
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.

6.0.1
latest
npm
Version published
Weekly downloads
9.3K
0.55%
Maintainers
2
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 23 Apr 2025

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