mirror of
https://github.com/PrismarineJS/node-minecraft-protocol.git
synced 2024-12-02 03:56:54 -05:00
Merge pull request #106 from mrfrase3/patch-1
Update yggdrasil.js to fix bug when reloading session
This commit is contained in:
commit
ba4d871984
1 changed files with 3 additions and 2 deletions
|
@ -20,7 +20,8 @@ function getSession(username, password, clientToken, refresh, cb) {
|
||||||
var session = {
|
var session = {
|
||||||
accessToken: resp.body.accessToken,
|
accessToken: resp.body.accessToken,
|
||||||
clientToken: resp.body.clientToken,
|
clientToken: resp.body.clientToken,
|
||||||
username: resp.body.selectedProfile.name
|
username: resp.body.selectedProfile.name,
|
||||||
|
selectedProfile: resp.body.selectedProfile
|
||||||
};
|
};
|
||||||
cb(null, session);
|
cb(null, session);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue