Update environment.ts

Added new ENV variables for auth redirect paths
This commit is contained in:
Vinoth Kirubakaran 2023-03-06 20:56:09 +05:30
parent e841ccd0ed
commit 0b26cc8743
1 changed files with 10 additions and 0 deletions

View File

@ -66,6 +66,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
@ -100,3 +109,4 @@ for (let [key, value] of Object.entries(environment)) {
}
export default environment