Nimble Pixie Merchant

    keyholder

    0.2.4 • Public • Published

    Keyholder

    Build Status

    A Node library to asynchronously test API keys generated by Keyholder. Before using this library, you should create a project.

    Installation

    $ npm i keyholder

    Usage

    Create a Keyholder instance using your project ID and access key, and authenticate API keys using the test method.

    import Keyholder from 'keyholder';
     
    const keyholder = new Keyholder({
      projectId: 'YOUR_PROJECT_ID',
      projectAccessKey: 'YOUR_PROJECT_ACCESS_KEY'
    });
     
    keyholder.test(apiKey).then(isValid => {
      // turn away invalid keys
    });

    Documentation

    Read more here

    Install

    npm i keyholder

    DownloadsWeekly Downloads

    10

    Version

    0.2.4

    License

    MIT

    Unpacked Size

    2.09 kB

    Total Files

    3

    Last publish

    Collaborators

    • trevorblades