npm.io
1.0.1 • Published 12 years ago

stellar-wallet-login

Licence
MIT
Version
1.0.1
Deps
5
Vulns
0
Weekly
0

stellar-wallet-login

Get an authorization token for the Stellar Wallet with a username and password. Works in node and in the browser (with browserify).

Example

var login = require('stellar-wallet-login');

login({
  user: 'awesome_username',
  pass: 'totally unguessable passphrase',
  // optional
  // url: 'http://some-custom-wallet-url.biz'
}, function(err, token, raw) {
  /*
   `token` is the authorization token
   `raw` is the raw data object returned from stellar.
  */
})