Skip to content

Commit 1297c76

Browse files
committed
Update library express-oauth-server to 4.0.0
1 parent 316f10a commit 1297c76

File tree

3 files changed

+910
-430
lines changed

3 files changed

+910
-430
lines changed

server2server/provider/model.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ function createModel (db) {
1616
}
1717

1818
if (typeof scope === 'string') {
19-
return enabledScopes.includes(scope);
19+
return enabledScopes.includes(scope) ? [scope] : false;
2020
} else {
21-
return scope.every(s => enabledScopes.includes(s));
21+
return scope.every(s => enabledScopes.includes(s)) ? scope : false;
2222
}
2323
}
2424

0 commit comments

Comments
 (0)