1.1.0 • Published 6 years ago

persona-verify v1.1.0

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

persona-verify

The official javascript client library for the Persona API.

Table of Contents

Install

npm install persona-verify`

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-verify');
const client: Client = new Persona.Client({
  // This refers to a production demo blueprint owned by Persona
  blueprintId: 'persona-production_e1de83bf-e29f-48bb-9dae-568479b9edda',
  onLoad: () => client.open(),
  onStart: (token: string) => console.log(token),
  onSuccess: () => console.log('onSuccess'),
});

Contributing

Please see Contributing for guidelines and instructions for local development.

License

MIT