mirror of
https://github.com/PrismarineJS/node-minecraft-protocol.git
synced 2024-11-14 19:04:59 -05:00
Update auth.js
Resolves issue whereby access token was passed to callback instead of the session object, causing an error.
This commit is contained in:
parent
ee463f5599
commit
835cc097cf
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ module.exports = function(client, options) {
|
|||
if (!err)
|
||||
cb(null, options.session);
|
||||
else
|
||||
yggdrasil.refresh(options.session.accessToken, options.session.clientToken, function(err, data) {
|
||||
yggdrasil.refresh(options.session.accessToken, options.session.clientToken, function(err, accessToken, data) {
|
||||
if (!err) {
|
||||
cb(null, data);
|
||||
} else if (options.username && options.password) {
|
||||
|
|
Loading…
Reference in a new issue