Handshake.js makes it easy to log your users into your application without using a password.
Handshakejs.setAppName('handshake-js_test');
Handshakejs.setRootUrl('https://handshakejs-api.herokuapp.com');
Handshakejs.login.request({email: '[email protected]', function(err, res) {
if ( err ) console.warn( err );
console.log('login requested: ', res.identities[0].email );
});
This library is part of the larger Handshake.js ecosystem.
Handshakejs.setAppName('handshake-js_test');
Handshakejs.setRootUrl('https://handshakejs-api.herokuapp.com');
Handshakejs.login.request({email: '[email protected]', function(err, res) {
if ( err ) console.warn( err );
console.log('login requested: ', res.identities[0].email );
});
Handshakejs.login.confirm({email: '[email protected]', authcode: '1234'}, function(err, res) {
if ( err ) console.warn( err );
console.log('login confirmed: ', res.identities[0].hash );
});
Open test/index.html