Passwordless token store using bookshelf.js
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
test
.gitignore
.travis.yml
LICENSE
README.md
index.js
package.json

README.md

Build Status

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