passwordless-bookshelfstore

0.0.1 • Public • Published

passwordless-bookshelfstore

A Passwordless TokenStore impleentation using Bookshelf.js

Installation

npm install passwordless-bookshelfstore

Usage

Create a Bookshelf Model with following properties:

  • token string (unique)
  • uid string (unique)
  • ttl timestamp
  • origin string

Initialize store:

var BookshelfStore = require('passwordless-bookshelfstore');
passwordless.init(new BookshelfStore(MyTokenModel));

Author

Niklas Närhinen niklas@narhinen.net

License

The MIT license

/passwordless-bookshelfstore/

    Package Sidebar

    Install

    npm i passwordless-bookshelfstore

    Weekly Downloads

    0

    Version

    0.0.1

    License

    MIT

    Last publish

    Collaborators

    • nnarhinen