Comparing version 0.1.8 to 0.1.9
@@ -56,2 +56,26 @@ /** | ||
/** | ||
* Un-utilize the `strategy` with given `name`. | ||
* | ||
* In typical applications, the necessary authentication strategies are static, | ||
* configured once and always available. As such, there is often no need to | ||
* invoke this function. | ||
* | ||
* However, in certain situations, applications may need dynamically configure | ||
* and de-configure authentication strategies. The `use()`/`unuse()` | ||
* combination satisfies these scenarios. | ||
* | ||
* Examples: | ||
* | ||
* passport.unuse('legacy-api'); | ||
* | ||
* @param {String} name | ||
* @return {Passport} for chaining | ||
* @api public | ||
*/ | ||
Passport.prototype.unuse = function(name) { | ||
delete this._strategies[name]; | ||
return this; | ||
} | ||
/** | ||
* Passport's primary initialization middleware. | ||
@@ -58,0 +82,0 @@ * |
{ | ||
"name": "passport", | ||
"version": "0.1.8", | ||
"version": "0.1.9", | ||
"description": "Simple, unobtrusive authentication for Node.js.", | ||
@@ -5,0 +5,0 @@ "author": { "name": "Jared Hanson", "email": "jaredhanson@gmail.com", "url": "http://www.jaredhanson.net/" }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
24588
755