From 3ecdad9484a29ad2436677e5cfb98709cc70c10a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rune=20Moskvil=20Lyng=C3=A5s?= Date: Mon, 29 Mar 2021 19:40:42 +0200 Subject: [PATCH] Bugfix: envs are imported as strings --- src/config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config.js b/src/config.js index 7d00f3c..0118b67 100644 --- a/src/config.js +++ b/src/config.js @@ -21,6 +21,6 @@ export default { storeAuthStateInCookie: process.env.AUTH_STATE_IN_COOKIE === 'true' || false }, userInfoUrl: process.env.AUTH_USER_INFO_URL || 'https://graph.microsoft.com/v1.0/me?$select=userPrincipalName,onPremisesSamaccountName,givenName,surname,displayName', - isMock: process.env.AUTH_IS_MOCK || process.env.REACT_APP_IS_MOCK || false, + isMock: (process.env.AUTH_IS_MOCK && process.env.AUTH_IS_MOCK === 'true') || (process.env.REACT_APP_IS_MOCK && process.env.REACT_APP_IS_MOCK === 'true') || false, mockUser: process.env.AUTH_MOCK_USER ? JSON.parse(process.env.AUTH_MOCK_USER) : defaultMockUser }