Free cloud-hosted TokenStore for passwordless
npm install passwordless-authjetstoreThis module provides token storage for Passwordless, a node.js module for express that allows website authentication without password using verification through email or other means. Visit the project's website https://passwordless.net for more details.
First, install the module:
$ npm install passwordless-authjetstore --save
Afterwards, follow the guide for Passwordless. A typical implementation may look like this:
``javascript
var passwordless = require('passwordless');
var AuthJetStore = require('passwordless-authjetstore');
// register for free at https://AuthJet.com
passwordless.init(new AuthJetStore('USERNAME', 'PASSWORD', 'APP_ID'));
passwordless.addDelivery(
function(tokenToSend, uidToSend, recipient, callback) {
// Send out a token
});
app.use(passwordless.sessionSupport());
app.use(passwordless.acceptToken());
`
`javascript``
new AuthJetStore(username, password, appId);
username: (string)* username you use to login to AuthJet
password: (string)* password you use to login to AuthJet
appId: (string)* obtained at https://authjet.com/accounts/apps