@missum/node
v0.6.0
Published
[![npm version][npm-version-src]][npm-version-href] [![Dependencies][david-dm-src]][david-dm-href] [![npm downloads][npm-downloads-src]][npm-downloads-href] [![code style: prettier](https://img.shields.io/badge/code_style-prettier-0A0A0A.svg?style=flat-sq
Downloads
5
Readme
Missum Node
This library allows you to quickly and easily use the Missum API via Node.js.
Install
Install with yarn:
yarn add @missum/node
Install with npm:
npm install @missum/node
Usage
import { Missum } from '@missum/node';
const client = new Missum('YOUR_API_KEY');
// Start a verification flow
await client.startVerification({
phoneNumber: '+6143456789',
});
// Submits verification code
const result = await client.checkVerification({
phoneNumber: '+6143456789',
verificationCode: '192847',
});
// result: { success: boolean; status: 'PENDING' | 'SUCCESS' }
License
Licensed under MIT.