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:
Connor 'Birb' McCormick 2018-04-30 21:32:43 +12:00 committed by GitHub
parent ee463f5599
commit 835cc097cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) {