Persona Inquiry SDK
The official Javascript client library for the Persona Inquiry flow.
Table of Contents
Install
npm install persona
Documentation
The module provides a client for the Persona embedded flow. For complete information about the API, head to
the docs.
Getting Started
To open the flow you must create a Client
object.
const Persona = require('persona');
const client: Client = new Persona.Client({
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