From 1c31ed51c80d7b033a07dd26ae62e0290c901aa7 Mon Sep 17 00:00:00 2001 From: Martin McKeaveney Date: Wed, 13 Oct 2021 16:23:16 +0100 Subject: [PATCH] fixing auto imported path --- packages/worker/src/api/controllers/global/auth.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/packages/worker/src/api/controllers/global/auth.js b/packages/worker/src/api/controllers/global/auth.js index dd1765e68b..50b4ec969b 100644 --- a/packages/worker/src/api/controllers/global/auth.js +++ b/packages/worker/src/api/controllers/global/auth.js @@ -3,8 +3,14 @@ const { google } = require("@budibase/auth/src/middleware") const { oidc } = require("@budibase/auth/src/middleware") const { Configs, EmailTemplatePurpose } = require("../../../constants") const { sendEmail, isEmailConfigured } = require("../../../utilities/email") -const { setCookie, getCookie, clearCookie, getGlobalUserByEmail, hash } = - authPkg.utils +const { + setCookie, + getCookie, + clearCookie, + getGlobalUserByEmail, + hash, + platformLogout, +} = authPkg.utils const { Cookies } = authPkg.constants const { passport } = authPkg.auth const { checkResetPasswordCode } = require("../../../utilities/redis") @@ -14,7 +20,6 @@ const { isMultiTenant, } = require("@budibase/auth/tenancy") const env = require("../../../environment") -const { platformLogout } = require("../../../../../auth/src/utils") function googleCallbackUrl(config) { // incase there is a callback URL from before