Socket
Socket
Sign inDemoInstall

authkey

Package Overview
Dependencies
582
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    authkey

simple app key issue and verification


Version published
Weekly downloads
20
increased by122.22%
Maintainers
1
Install size
108 MB
Created
Weekly downloads
 

Readme

Source

authkey

self-hosted, bare-bones licensing API

Basically a very limited version of what keygen.sh does.

npm Build Status Coverage StatusJavaScript Style Guide

Quick start

  1. configure Amazon SES or get some gmail creds

  2. install

npm i authkey
  1. use
const authkey = require('authkey')

authkey({
  from: 'superthing@things.com'
  productName: 'SuperThing',
  mailerConfig: {
    // see below for other services
    type: 'gmail',
    credentials: {
      user: process.env.GMAIL_USER,
      pass: process.env.GMAIL_PASS,
    }
  },
}).listen()

mailerConfig options

service (type)required credentials
amazonSESaccessKeyId, secretAccessKey, region
gmailuser, pass

API Reference

verbendpointwhat it does
POST/request/:addresscreates a new auth key for the given address and sends an email with the auth key
POST/verify/:authkeyverifies the given auth key

Database

a JSON file handled with lowdb

Versioning

SemVer is used (with help of semantic-release).

Contributing

git clone https://github.com/adekbadek/authkey.git
cd authkey/
npm i
npm t

Will install the dependencies and run tests in watch mode.

Tests

with Jest

npm t

Style guide

using Standard

Keywords

FAQs

Last updated on 08 Mar 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc