Skip to content

Commit

Permalink
Updated npm deps and updated from passport-next/skel
Browse files Browse the repository at this point in the history
  • Loading branch information
rwky committed Sep 10, 2019
1 parent bc04113 commit 1419528
Show file tree
Hide file tree
Showing 10 changed files with 6,286 additions and 6,090 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ node_js:
- "12"

script:
- "npm run coverage"
- "npm run test"
- "npm run lint"

after_success:
Expand Down
14 changes: 7 additions & 7 deletions lib/authenticator.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ class Authenticator {
*
* passport.framework(require('hapi-passport')());
*
* @param {object} fw
* @param {PlainObject} fw
* @returns {Authenticator} for chaining
* @public
*/
Expand Down Expand Up @@ -167,7 +167,7 @@ class Authenticator {
* });
*
* @param {string} strategy
* @param {object} options
* @param {PlainObject} options
* @param {GenericCallback} callback
* @returns {GenericCallback} middleware
* @public
Expand All @@ -192,7 +192,7 @@ class Authenticator {
* passport.authorize('twitter-authz', { failureRedirect: '/account' });
*
* @param {string} strategy
* @param {object} options
* @param {PlainObject} options
* @param {GenericCallback} callback
* @returns {GenericCallback} middleware
* @public
Expand Down Expand Up @@ -230,7 +230,7 @@ class Authenticator {
* app.use(passport.initialize());
* app.use(passport.session());
*
* @param {object} options
* @param {PlainObject} options
* @returns {GenericCallback} middleware
* @public
*/
Expand Down Expand Up @@ -258,7 +258,7 @@ class Authenticator {
*
* @example
*
* passport.serializeUser(function(user, done) {
* passport.serializeUser(function (user, done) {
* done(null, user.id);
* });
*
Expand Down Expand Up @@ -320,7 +320,7 @@ class Authenticator {
*
* @example
*
* passport.deserializeUser(function(id, done) {
* passport.deserializeUser(function (id, done) {
* User.findById(id, function (err, user) {
* done(err, user);
* });
Expand Down Expand Up @@ -411,7 +411,7 @@ class Authenticator {
*
* @example
*
* passport.transformAuthInfo(function(info, done) {
* passport.transformAuthInfo(function (info, done) {
* Client.findById(info.clientID, function (err, client) {
* info.client = client;
* done(err, info);
Expand Down
2 changes: 1 addition & 1 deletion lib/framework/connect.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const authenticate = require('../middleware/authenticate');
* This module provides support for using Passport with Express. It exposes
* middleware that conform to the `fn(req, res, next)` signature.
*
* @return {Object}
* @returns {Object}
* @protected
*/

Expand Down
4 changes: 2 additions & 2 deletions lib/middleware/authenticate.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ const AuthenticationError = require('../errors/authenticationerror');
* passport.authenticate('twitter');
*
* @param {Authenticator} passport
* @param {string|Array} name
* @param {object} options
* @param {string|GenericArray} name
* @param {PlainObject} options
* @param {GenericCallback} callback
* @returns {GenericCallback}
* @public
Expand Down
6 changes: 3 additions & 3 deletions lib/middleware/initialize.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,17 @@
* app.use(passport.initialize());
* app.use(passport.session());
*
* passport.serializeUser(function(user, done) {
* passport.serializeUser(function (user, done) {
* done(null, user.id);
* });
*
* passport.deserializeUser(function(id, done) {
* passport.deserializeUser(function (id, done) {
* User.findById(id, function (err, user) {
* done(err, user);
* });
* });
*
* @return {Function}
* @returns {GenericCallback}
* @public
*/

Expand Down

0 comments on commit 1419528

Please sign in to comment.