New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

passwordless-knexstore

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

passwordless-knexstore

Passwordless.js tokenstore using Knex.js

  • 0.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
Source

Build Status

passwordless-knexstore

A Passwordless TokenStore impleentation using Knex.js

Installation

npm install passwordless-knexstore

Usage

Create a Knex Table with following properties:

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

For example, create a knex migration using this command:

./node_modules/.bin/knex migrate:make passwordless

and add schema creation to the migration:

knex.schema.createTable('passwordless', function(table) {
  table.increments('id').primary();
  table.string('token').unique();
  table.string('uid').unique();
  table.timestamp('ttl');
  table.string('origin');
});

Initialize store, passing a knex object to it:

var KnexStore = require('passwordless-knexstore');
passwordless.init(new KnexStore(knex));

Author

Forked from passwordless-bookshelfstore by Niklas Närhinen niklas@narhinen.net.

License

The MIT license

FAQs

Package last updated on 17 Feb 2015

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc