Skip to content

Commit 2274bf1

Browse files
euskadi31ruimarinho
authored andcommitted
Update Readme.md
1 parent 9024afa commit 2274bf1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Readme.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ This is the express wrapper for [oauth2-server](https://github.com/thomseddon/no
1010

1111
## Quick Start
1212

13-
The module provides two middlewares - one for granting tokens and another to authorise them. `express-oauth-server` and, consequently `oauth2-server`, expect the request body to be parsed already.
13+
The module provides two middlewares - one for granting tokens and another to authorize them. `express-oauth-server` and, consequently `oauth2-server`, expect the request body to be parsed already.
1414
The following example uses `body-parser` but you may opt for an alternative library.
1515

1616
```js
17-
var bodyparser = require('body-parser');
17+
var bodyParser = require('body-parser');
1818
var express = require('express');
1919
var OAuthServer = require('express-oauth-server');
2020

@@ -25,8 +25,8 @@ app.oauth = new OAuthServer({
2525
});
2626

2727
app.use(bodyParser.json());
28-
app.use(bodyparser.urlencoded({ extended: false }));
29-
app.use(app.oauth.authorise());
28+
app.use(bodyParser.urlencoded({ extended: false }));
29+
app.use(app.oauth.authorize());
3030

3131
app.use(function(req, res) {
3232
res.send('Secret area');

0 commit comments

Comments
 (0)