Launch Week Day 1: Socket for Jira Is Now Available.Learn More
Socket
Book a DemoSign in
Socket

persona

Package Overview
Dependencies
Maintainers
6
Versions
102
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

persona

The official JavaScript SDK for the Persona Inquiry Flow.

latest
npmnpm
Version
5.8.0
Version published
Weekly downloads
318K
5.63%
Maintainers
6
Weekly downloads
 
Created
Source

Persona Inquiry JavaScript SDK

The official JavaScript client library for the Persona Inquiry flow.

Demo

Table of Contents

Documentation

The module provides a client for the Persona embedded flow.

Getting Started

npm install persona

To open the flow you must create a Client object.

import { Client } from 'persona';

const client = new Client({
  // This refers to a production demo template owned by Persona
  templateId: 'itmpl_Ygs16MKTkA6obnF8C3Rb17dm',
  environment: 'sandbox',
  onReady: () => client.open(),
  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 01 Apr 2026

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