mirror of
https://github.com/dawidd6/action-send-mail.git
synced 2025-08-12 16:44:39 +07:00
node_modules: update
This commit is contained in:
10
node_modules/nodemailer/lib/xoauth2/index.js
generated
vendored
10
node_modules/nodemailer/lib/xoauth2/index.js
generated
vendored
@ -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) {
|
||||
|
Reference in New Issue
Block a user