-
Notifications
You must be signed in to change notification settings - Fork 493
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix some examples and docs + using https everywhere #436
Conversation
package.json
Outdated
@@ -22,7 +22,7 @@ | |||
"test:watch": "mocha --watch -R min test/**/*.test.js", | |||
"ci:test": "istanbul cover _mocha --report lcovonly -R test/**/* -- -R mocha-multi --reporter-options spec=-,mocha-junit-reporter=-", | |||
"ci:coverage": "codecov", | |||
"lint": "eslint ./src", | |||
"lint": "eslint --fix ./src", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove the --fix
src/web-auth/index.js
Outdated
* @param {String} options.password user password | ||
* @param {String} options.realm realm | ||
* @param {Function} cb callback function called only when an authorization error occurs. Has the error as the only parameter. | ||
* @param {String} [options.username] Username |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Explain that username
and email
are mutually exclusive here too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And if both are supplied explain what happens if you don't raise an error
src/web-auth/index.js
Outdated
* @param {String} [options.username] Username | ||
* @param {String} [options.email] Email | ||
* @param {String} options.password Password | ||
* @param {String} [options.realm] Use the realm paramater to specify a connection. Ex: 'Username-Password-Authentication' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
realm used to authenticate the user, it can be a realm name or a database connection name
src/web-auth/index.js
Outdated
* @param {String} [options.email] Email | ||
* @param {String} options.password Password | ||
* @param {String} [options.realm] Use the realm paramater to specify a connection. Ex: 'Username-Password-Authentication' | ||
* @param {Function} cb Callback function called only when an authorization error occurs. Has the error as the only parameter |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Define the callback type as I did in the rest of jsdocs
No description provided.