0.0.1 • Published 4 years ago

lip-esign v0.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

lip-esign

Web Components implementation of the LIP eSign system.

This repository is aimed mainly to developers.

Remember to whitelist the domains under 'My Account / API'

Install

Add it to your project:

$ npm install lip-esign

Or load the ES module directly through unpkg:

<script type="module" src="https://unpkg.com/lip-esign?module"></script>

Check the demo project for more info.

Usage

You can import the components like this:

import { LipEsign, LipEapp, utils } from 'lip-esign';

lip-esign

This component will render the page for entering the signing code:

<lip-esign access-token="XXX"
           logo="/img/logo.png">
</lip-esign>

lip-eapp

This component will render a LIP application:

<lip-eapp signing-code="123-123"
          access-token="XXX">
</lip-eapp>

Utils

#validate_code
utils.validateCode('123-123', { access_token: 'XXX' });