Skip to content

Commit ccf836e

Browse files
committed
Merge branch 'development' into release-4.2.0
2 parents 9ae7f1e + 7050a91 commit ccf836e

File tree

8 files changed

+15
-2546
lines changed

8 files changed

+15
-2546
lines changed

.github/workflows/tests-release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
${{ runner.os }}-node-${{ matrix.node }}
5858
5959
# for this workflow we also require npm audit to pass
60-
- run: npm ci
60+
- run: npm i
6161
- run: npm run test:coverage
6262

6363
# with the following action we enforce PRs to have a high coverage
@@ -110,7 +110,7 @@ jobs:
110110
# we just cloned and install it as local dependency
111111
- run: |
112112
cd github/testing/express
113-
npm ci
113+
npm i
114114
npm install ../../../
115115
npm run test
116116
@@ -125,7 +125,7 @@ jobs:
125125
with:
126126
node-version: 12
127127
registry-url: https://registry.npmjs.org/
128-
- run: npm ci
128+
- run: npm i
129129
- run: npm publish --dry-run
130130
env:
131131
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
@@ -143,7 +143,7 @@ jobs:
143143
# we always publish targeting the lowest supported node version
144144
node-version: 12
145145
registry-url: $registry-url(npm)
146-
- run: npm ci
146+
- run: npm i
147147
- run: npm publish --dry-run
148148
env:
149149
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
key: ${{ runner.os }}-node-${{ matrix.node }}-${{ hashFiles('**/package-lock.json') }}
3636
restore-keys: |
3737
${{ runner.os }}-node-${{ matrix.node }}
38-
- run: npm ci
38+
- run: npm i
3939
- run: npm run test:coverage
4040

4141
# with the following action we enforce PRs to have a high coverage

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,6 @@ tramp
3939
# coverage
4040
coverage
4141
.nyc_output
42+
43+
package-lock.json
44+
yarn.lock

.npmignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
test/
2+
package-lock.json
3+
yarn.lock

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
package-lock=false

lib/grant-types/refresh-token-grant-type.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ RefreshTokenGrantType.prototype.getRefreshToken = function(request, client) {
101101
}
102102

103103
if (token.client.id !== client.id) {
104-
throw new InvalidGrantError('Invalid grant: refresh token is invalid');
104+
throw new InvalidGrantError('Invalid grant: refresh token was issued to another client');
105105
}
106106

107107
if (token.refreshTokenExpiresAt && !(token.refreshTokenExpiresAt instanceof Date)) {
@@ -130,7 +130,7 @@ RefreshTokenGrantType.prototype.revokeToken = function(token) {
130130
return promisify(this.model.revokeToken, 1).call(this.model, token)
131131
.then(function(status) {
132132
if (!status) {
133-
throw new InvalidGrantError('Invalid grant: refresh token is invalid');
133+
throw new InvalidGrantError('Invalid grant: refresh token is invalid or could not be revoked');
134134
}
135135

136136
return token;

0 commit comments

Comments
 (0)