npm.io
0.6.0 • Published 4 years ago

@missum/node

Licence
MIT
Version
0.6.0
Deps
2
Size
204 kB
Vulns
0
Weekly
0

Missum Node

npm version Dependencies npm downloads code style: prettier License: MIT CI workflow

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.