From e31febd14dd472740567e4075d36e0e7635fcb25 Mon Sep 17 00:00:00 2001 From: Andrew Magana Date: Mon, 6 Jul 2020 16:20:23 -0400 Subject: [PATCH] It is a 500 error, not a 400. Corrected. --- lib/alks-api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/alks-api.js b/lib/alks-api.js index d8b862c..d02c933 100644 --- a/lib/alks-api.js +++ b/lib/alks-api.js @@ -621,7 +621,7 @@ exports.refreshTokenToAccessToken = function(account, token, opts, callback){ } }, function(err, results){ if(err){ - // [AM] - This is when we get a 400, which is (in ALKS Core) a bad refresh token. Should pass this error to the CLI. + // [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){