0.1.2 • Published 1 year ago

@beekai/vanilla v0.1.2

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

beekai-vanilla

This library contains utility functions to work with BEEKAI

Install

npm i @beekai/vanilla

Usage

The following are the methods exported from the package.

  • submit
import { submit } from '@beekai/vanilla';

submit({
  formId: 'AAAA-BBBB-CCCC-DDDD', // BEEKAI form applicaiton id
  data: {}, // form data
});
  • validateSignature
import { validateSignature } from '@beekai/vanilla';

function (req, res) {
  const isValidToken: boolean = validateSignature({
    req,
    token,
  })
}