From d98706c7afa3f4da1bbddcf66d9967b7a067235e Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Thu, 5 Aug 2021 13:39:40 +0100 Subject: [PATCH] Defining fetch for third party image retrieval. --- packages/auth/src/middleware/passport/third-party-common.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/auth/src/middleware/passport/third-party-common.js b/packages/auth/src/middleware/passport/third-party-common.js index adce8e7e9c..7c03944232 100644 --- a/packages/auth/src/middleware/passport/third-party-common.js +++ b/packages/auth/src/middleware/passport/third-party-common.js @@ -6,6 +6,7 @@ const { newid } = require("../../hashing") const { createASession } = require("../../security/sessions") const { getGlobalUserByEmail } = require("../../utils") const { getGlobalDB, getTenantId } = require("../../tenancy") +const fetch = require("node-fetch") /** * Common authentication logic for third parties. e.g. OAuth, OIDC.