← All tasks
javascriptnodemailer/nodemailer #1584Not a task: already works

customAuth requires user and pass in credentials

envgap__nodemailer__nodemailer-1584

01 / FAILURE SIGNATURE

As reported upstream

It seems the intent of the customAuth feature is to permit custom authentication with custom options and therefore the provided `options` should satisfy the constraints vs throwing a Missing credentials error when `user` and `pass` are not provided.
Not a benchmark task.
  • The project already builds and runs before the fix, so there is nothing to repair.

02 / ENVIRONMENT RECIPE

Base commit
140e3b0d94f2f5ff24ea49771b47a795412a276e
Manifest
package.json
Reproduce
Awaiting issue-specific recipe
Run under trace
Awaiting a meaningful runtime command

03 / ORIGINAL ISSUE TEXT

nodemailer/nodemailer #1584 · read the original issue
```js

       if (this._authMethod !== 'XOAUTH2' && (!this._auth.credentials || !this._auth.credentials.user || !this._auth.credentials.pass)) {

            if (this._auth.user && this._auth.pass) {

                this._auth.credentials = {

                    user: this._auth.user,

                    pass: this._auth.pass,

                    options: this._auth.options

                };

            } else {

                return callback(this._formatError('Missing credentials for "' + this._authMethod + '"', 'EAUTH', false, 'API'));

            }

        }

```



It seems the intent of the customAuth feature is to permit custom authentication with custom options and therefore the provided `options` should satisfy the constraints vs throwing a Missing credentials error when `user` and `pass` are not provided.
Continue on GitHub ↗

04 / LABELS

Labels from the report text only; not yet run

No supported category has been assigned.

Label rules and the text that matched
[]