Skip to content

Commit 4584ee6

Browse files
UPDATE dependencies / skipForceSessionSave
1 parent 73d2dec commit 4584ee6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+13225
-1776
lines changed

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
# 1.1.0 (2015-06-18)
2+
3+
Bugfixes:
4+
- N/A
5+
6+
Features:
7+
- ADD option.skipForceSessionSave to support cookie-session middleware
8+
- UPDATE to latest dependencies
9+
- UPDATE example to work with latest dependencies
10+
11+
Documentation:
12+
- N/A
13+
114
# 1.0.9 (2015-02-14)
215

316
Bugfixes:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ app.use(passwordless.sessionSupport());
8989
app.use(passwordless.acceptToken({ successRedirect: '/'}));
9090
```
9191

92-
`sessionSupport()` makes the login persistent, so the user will stay logged in while browsing your site. Make sure to have added your session middleware *before* this line. Have a look at [express-session](https://github.com/expressjs/session) how to setup sessions if you are unsure.
92+
`sessionSupport()` makes the login persistent, so the user will stay logged in while browsing your site. Make sure to have added your session middleware *before* this line. Have a look at [express-session](https://github.com/expressjs/session) how to setup sessions if you are unsure. Please be aware: If you decide to use [cookie-session](https://github.com/expressjs/cookie-session) rather than e.g. express-session as your middleware you have to set `passwordless.init(tokenStore, {skipForceSessionSave:true})`
9393

9494
`acceptToken()` will accept incoming tokens and authenticate the user (see the URL in step 5). While the option `successRedirect` is not strictly needed, it is strongly recommended to use it to avoid leaking valid tokens via the referrer header of outgoing HTTP links. When provided, the user will be forwarded to the given URL as soon as she has been authenticated.
9595

0 commit comments

Comments
 (0)