Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimiratanasov committed Nov 16, 2023
1 parent 7be2d61 commit 445eed9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Expand Up @@ -14,6 +14,7 @@
## Table of Contents
* [Summary](#summary)
* [Requirements](#requirements)
* [Migrating from v6 to v7](#migrating-from-v6-to-v7)
* [Installation](#installation)
* [Example Usage](#example-usage)
* [License](#license)
Expand All @@ -33,6 +34,15 @@ Read the [official documentation](https://console.ng.bluemix.net/docs/services/a
## Requirements
* npm 6.+
* node 12.+
* passport.js 0.6.0+

## Migrating from v6 to v7
Breaking changes in passport.js require users to pass the `{ keepSessionInfo: true }` object to the middleware when protecting endpoints.
```
app.use(passport.authenticate(WebAppStrategy.STRATEGY_NAME, { keepSessionInfo: true }));
app.get(CALLBACK_URL, passport.authenticate(WebAppStrategy.STRATEGY_NAME, { keepSessionInfo: true }));
```

## Installation
```
Expand Down

0 comments on commit 445eed9

Please sign in to comment.