diff --git a/.gitignore b/.gitignore index b512c09..498a2f6 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ -node_modules \ No newline at end of file +node_modules + +.idea/* \ No newline at end of file diff --git a/lib/alks-api.js b/lib/alks-api.js index ac22d0b..d02c933 100644 --- a/lib/alks-api.js +++ b/lib/alks-api.js @@ -621,7 +621,8 @@ exports.refreshTokenToAccessToken = function(account, token, opts, callback){ } }, function(err, results){ if(err){ - return callback(err); + // [AM] - This is when we get a 500, which is (in ALKS Core) a bad refresh token. Should pass this error to the CLI. + return callback("Error: Refresh token expired. Please try to use the logout2fa and login2fa commands."); } else if(results.statusCode !== 200){ return callback(new Error(getMessageFromBadResponse(results)));