Merge pull request #106 from mrfrase3/patch-1

Update yggdrasil.js to fix bug when reloading session
This commit is contained in:
Robin Lambertz 2014-12-15 22:29:19 +01:00
commit ba4d871984

View file

@ -20,7 +20,8 @@ function getSession(username, password, clientToken, refresh, cb) {
var session = {
accessToken: resp.body.accessToken,
clientToken: resp.body.clientToken,
username: resp.body.selectedProfile.name
username: resp.body.selectedProfile.name,
selectedProfile: resp.body.selectedProfile
};
cb(null, session);
} else {
@ -100,4 +101,4 @@ exports.getSession = getSession;
exports.joinServer = joinServer;
exports.validateSession = validateSession;
exports.generateUUID = require("node-uuid").v4;
exports.loginType = "yggdrasil";
exports.loginType = "yggdrasil";