node_modules: update

This commit is contained in:
Dawid Dziurla
2020-11-12 16:30:46 +01:00
parent 2b66ab09bf
commit 6fd4a30225
20 changed files with 168 additions and 81 deletions

View File

@ -261,7 +261,15 @@ class XOAuth2 extends Stream {
);
if (data.error) {
return callback(new Error(data.error));
// Error Response : https://tools.ietf.org/html/rfc6749#section-5.2
let errorMessage = data.error;
if(data.error_description) {
errorMessage += ': ' + data.error_description;
}
if(data.error_uri) {
errorMessage += ' (' + data.error_uri + ')';
}
return callback(new Error(errorMessage));
}
if (data.access_token) {