Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

persona

Package Overview
Dependencies
Maintainers
7
Versions
88
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

persona

The official web client library for the Persona API.

  • 4.12.1
  • npm
  • Socket score

Version published
Weekly downloads
64K
decreased by-0.61%
Maintainers
7
Weekly downloads
 
Created
Source

Persona Inquiry SDK

The official Javascript client library for the Persona Inquiry flow.

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: '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 10 Jan 2024

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc