0.0.1 • Published 10 years ago

passwordless-bookshelfstore v0.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
10 years ago

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