forked from jaredhanson/passport
-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Breaking change: Stop supporting older behavior against layers of a…
…rity one or two (will now drop one with no `done`) - Breaking change: We now catch errors within layers so as to support more intuitive passing of errors (when synchronous) - Breaking change: No longer throws when login is missing a callback (as may use as Promise) - Breaking change: Only return from `serializeUser`, `deserializeUser` (and `transformAuthInfo`) when giving a synchronous serialized result or a Promise (do not do `return done()`) - Enhancement: Promises for `serializeUser`, `deserializeUser`, `transformAuthInfo` (including allowing throwing `new Error('pass')` to pass); avoid need for `done` - Enhancement: Allow `serializeUser` or `deserializeUser` to return non-`undefined` value for sync behavior - Refactoring: Return Promise from `req.logIn` and from authenticate middleware's `strategy.success` - Makefile: Add missing `clean-cov` - Testing: Add tests with `req.logIn` and `SessionStrategy` returning without `done` (synchronously or with Promise) - Docs: Show example of a `LocalStrategy` using async/await - Docs: Avoid showing connect `cookieParser` with `session`; use current `expressSession` over `connect.session` - Linting: jsdoc - npm/Docs: Add jsdoc with script, along with static server and open-cli to open - npm: Update devDeps - npm: Add `test-one` script
- Loading branch information
Showing
30 changed files
with
3,411 additions
and
475 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
coverage/ | ||
node_modules/ | ||
var/ | ||
docs/jsdoc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
docs/ | ||
docs/jsdoc | ||
reports/ | ||
var/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
'use strict'; | ||
|
||
module.exports = { | ||
recurseDepth: 10, | ||
source: { | ||
exclude: [ | ||
'node_modules', | ||
'dist', | ||
'var', | ||
'coverage', | ||
'test' | ||
], | ||
// excludePattern: '' | ||
}, | ||
sourceType: 'module', | ||
tags: { | ||
allowUnknownTags: false | ||
}, | ||
templates: { | ||
cleverLinks: true, | ||
monospaceLinks: false /* , | ||
default: { | ||
layoutFile: 'docs/layout.tmpl' | ||
} */ | ||
}, | ||
opts: { | ||
recurse: true, | ||
verbose: true, | ||
destination: 'docs/jsdoc', | ||
// tutorials: 'docs/tutorials' | ||
} | ||
}; |
Oops, something went wrong.