You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

persona-react

Package Overview
Dependencies
Maintainers
0
Versions
13
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.2.1
latest
npmnpm
Version published
Weekly downloads
24K
-5.15%
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 29 Jul 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