From c66e4f5c2af932e02a3fda54db2f1874c5c66182 Mon Sep 17 00:00:00 2001 From: Vinoth Kirubakaran Date: Mon, 6 Mar 2023 20:56:09 +0530 Subject: [PATCH] Update environment.ts Added new ENV variables for auth redirect paths --- packages/worker/src/environment.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/packages/worker/src/environment.ts b/packages/worker/src/environment.ts index cd5360f7f7..029c925c41 100644 --- a/packages/worker/src/environment.ts +++ b/packages/worker/src/environment.ts @@ -69,6 +69,15 @@ const environment = { * Mock the email service in use - links to ethereal hosted emails are logged instead. */ ENABLE_EMAIL_TEST_MODE: process.env.ENABLE_EMAIL_TEST_MODE, + PASSPORT_GOOGLEAUTH_SUCCESS_REDIRECT: + process.env.PASSPORT_GOOGLEAUTH_SUCCESS_REDIRECT || "/", + PASSPORT_GOOGLEAUTH_FAILURE_REDIRECT: + process.env.PASSPORT_GOOGLEAUTH_FAILURE_REDIRECT || "/error", + PASSPORT_OIDCAUTH_SUCCESS_REDIRECT: + process.env.PASSPORT_OIDCAUTH_SUCCESS_REDIRECT || "/", + PASSPORT_OIDCAUTH_FAILURE_REDIRECT: + process.env.PASSPORT_OIDCAUTH_FAILURE_REDIRECT || "/error", + _set(key: any, value: any) { process.env[key] = value // @ts-ignore @@ -103,3 +112,4 @@ for (let [key, value] of Object.entries(environment)) { } export default environment +