From 31479d6a480ef5fb65bc572599dca8c9d02da1cb Mon Sep 17 00:00:00 2001 From: bsu3338 Date: Fri, 17 May 2024 13:03:31 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20Fix:=20OpenID=20Profile=20Image?= =?UTF-8?q?=20Download=20(#2757)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Add fetch requirement Fixes - error: [openidStrategy] downloadImage: Error downloading image at URL "https://graph.microsoft.com/v1.0/me/photo/$value": TypeError: response.buffer is not a function * Update openidStrategy.js --------- Co-authored-by: Danny Avila --- api/strategies/openidStrategy.js | 1 + 1 file changed, 1 insertion(+) diff --git a/api/strategies/openidStrategy.js b/api/strategies/openidStrategy.js index f60e894f62..81ef6c81fc 100644 --- a/api/strategies/openidStrategy.js +++ b/api/strategies/openidStrategy.js @@ -1,3 +1,4 @@ +const fetch = require('node-fetch'); const passport = require('passport'); const jwtDecode = require('jsonwebtoken/decode'); const { Issuer, Strategy: OpenIDStrategy } = require('openid-client');