diff --git a/lib/yggdrasil.js b/lib/yggdrasil.js index 3b34a17..9b3ac86 100644 --- a/lib/yggdrasil.js +++ b/lib/yggdrasil.js @@ -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"; \ No newline at end of file +exports.loginType = "yggdrasil";