persona
    TypeScript icon, indicating that this package has built-in type declarations

    3.10.0 • Public • Published

    persona-verify

    The official javascript client library for the Persona API.

    Demo

    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({
      // This refers to a production demo template owned by Persona
      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

    Keywords

    none

    Install

    npm i persona

    DownloadsWeekly Downloads

    19,241

    Version

    3.10.0

    License

    MIT

    Unpacked Size

    130 kB

    Total Files

    22

    Last publish

    Collaborators

    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar