Fetch TOKEN_URL from the resin sdk

This commit is contained in:
Juan Cruz Viotti 2015-03-17 09:50:17 -04:00
parent 978ff91f87
commit 064afd6705
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@
}
};
TOKEN_URL = 'https://dashboard.resin.io/preferences';
TOKEN_URL = url.resolve(resin.settings.get('remoteUrl'), resin.settings.get('urls.preferences'));
exports.login = {
signature: 'login [token]',

View File

@ -22,7 +22,7 @@ exports.whoami =
console.log(username)
return done()
TOKEN_URL = 'https://dashboard.resin.io/preferences'
TOKEN_URL = url.resolve(resin.settings.get('remoteUrl'), resin.settings.get('urls.preferences'))
exports.login =
signature: 'login [token]'