Skip to content

Commit 986ffb0

Browse files
committed
fix: update links to current org
1 parent 7780a50 commit 986ffb0

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

README.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,31 @@ Complete, compliant and well tested module for implementing an OAuth2 Server/Pro
77
![GitHub](https://img.shields.io/github/license/node-oauth/express-oauth-server)
88

99

10-
This is the express wrapper for [oauth2-server](https://github.com/oauthjs/node-oauth2-server).
10+
This is the express wrapper for [@node-oauth/oauth2-server](https://github.com/node-oauth/node-oauth2-server),
11+
it's a fork from the former [oauthjs/express-oauth-server](https://github.com/oauthjs/express-oauth-server).
1112

1213
## Installation
1314

14-
$ npm install express-oauth-server
15+
```shell
16+
$ npm install @node-oauth/express-oauth-server
17+
```
1518

1619
## Quick Start
1720

18-
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.
21+
The module provides two middlewares - one for granting tokens and another to authorize them.
22+
`@node-oauth/express-oauth-server` and, consequently `@node-oauth/oauth2-server`,
23+
expect the request body to be parsed already.
1924
The following example uses `body-parser` but you may opt for an alternative library.
2025

2126
```js
2227
var bodyParser = require('body-parser');
2328
var express = require('express');
24-
var OAuthServer = require('express-oauth-server');
29+
var OAuthServer = require('@node-oauth/express-oauth-server');
2530

2631
var app = express();
2732

2833
app.oauth = new OAuthServer({
29-
model: {}, // See https://github.com/oauthjs/node-oauth2-server for specification
34+
model: {}, // See https://github.com/node-oauth/node-oauth2-server for specification
3035
});
3136

3237
app.use(bodyParser.json());

examples/postgresql/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
var bodyParser = require('body-parser');
77
var express = require('express');
8-
var oauthServer = require('express-oauth-server');
8+
var oauthServer = require('@node-oauth/express-oauth-server');
99
var render = require('co-views')('views');
1010
var util = require('util');
1111

0 commit comments

Comments
 (0)