From 7708c4528a865b9969f1bbb870c703f8d21729a4 Mon Sep 17 00:00:00 2001 From: rob Date: Tue, 5 Jul 2022 16:12:34 -0400 Subject: [PATCH] fix --- app/services/oauth2.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/oauth2.js b/app/services/oauth2.js index 6932764..2837612 100644 --- a/app/services/oauth2.js +++ b/app/services/oauth2.js @@ -168,7 +168,7 @@ class OAuth2Service extends SiteService { try { const ac = await OAuth2AuthorizationCode.findOne({ code }); this.log.debug('process OAuth2 exchange', { client, code, redirectUri }); - if (client.id !== ac.clientId) { + if (client._id !== ac.clientId) { this.log.alert('OAuth2 client ID mismatch', { provided: client.id, onfile: ac.clientId }); return done(null, false); }