Skip to content

Commit

Permalink
Document Strategy class.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredhanson committed Oct 14, 2011
1 parent c933f8e commit a6889bf
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/passport/strategy.js
Expand Up @@ -13,6 +13,15 @@ function Strategy() {
this.middleware = [];
}

/**
* Authenticate request.
*
* This function must be overridden by subclasses. In abstract form, it always
* throws an exception.
*
* @param {Object} req
* @api protected
*/
Strategy.prototype.authenticate = function(req) {
throw new Error('Strategy#authenticate must be overridden by subclass');
}
Expand Down

0 comments on commit a6889bf

Please sign in to comment.