Skip to content

Commit 539e40e

Browse files
author
david
committed
check for mull client in authorization
1 parent 54557b1 commit 539e40e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

routes/oauth2-routes.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ function oauth2Router(tokenconf, entityStorageConf) {
5959
if (err) {
6060
return done(err);
6161
}
62+
if (!client) {
63+
return done(null, false);
64+
}
6265
console.log('client ' + JSON.stringify(client));
6366
if (redirectURI === client.redirectURI) {
6467
return done(null, client, redirectURI);

0 commit comments

Comments
 (0)