Skip to content

Commit 7ca3ca5

Browse files
author
Thibaud ARNAULT
authored
Update README.md
1 parent c264d84 commit 7ca3ca5

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

README.md

+17-2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,21 @@ Features
1515
With this SDK, your OAuth flow is also more secure as the oauth token never
1616
leaves your backend.
1717

18+
Requirement
19+
-----------
20+
21+
[Express-session](https://github.com/expressjs/session) is required:
22+
23+
```js
24+
var session = require('express-session');
25+
...
26+
app.use(session({
27+
secret: 'some secret',
28+
resave: false,
29+
saveUninitialized: true
30+
}));
31+
```
32+
1833
Installation
1934
------------
2035

@@ -32,7 +47,7 @@ var OAuth = require('oauthio');
3247

3348
To use this SDK, you need to create an account (if you don't have one yet) on [oauth.io](https://oauth.io), create an app in the [Dashboard](https://oauth.io/dashboard) and add a provider to that app.
3449

35-
You'll have to go on the provider's website to register a new app, and copy its keys on oauth.io. **Don't forget to select the Node.js backend on OAuth.io.**
50+
You'll have to go on the provider's website to register a new app, and copy its keys on oauth.io.
3651

3752
Initializing the SDK
3853
--------------------
@@ -479,4 +494,4 @@ Powered by [OAuth.io][3].
479494
[1]: https://oauth.io/docs
480495
[2]: https://oauth.io/dashboard
481496
[3]: https://oauth.io
482-
[4]: https://oauth.io/docs/me
497+
[4]: https://oauth.io/docs/me

0 commit comments

Comments
 (0)