persona-verify
The official Javascript client library for the Persona API.
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: 'tmpl_JAZjHuAT738Q63BdgCuEJQre',
environment: 'sandbox',
onLoad: () => client.open(),
onStart: (inquiryId: string) => console.log(inquiryId),
onComplete: (inquiryId: string, scopes: { [key: string]: string }) => console.log('onComplete'),
});
Contributing
Please see Contributing for guidelines and instructions for local development.
License
MIT