Add evnvironment Enum for OPID_LOGIN_SCREEN_PROVIDER variable

This commit is contained in:
Gregoire Parant 2021-11-12 19:36:37 +01:00
parent f905426ebd
commit 15cdc54ec3

View File

@ -24,6 +24,7 @@ export const PROFILE_URL = process.env.PROFILE_URL || undefined;
export const POSTHOG_API_KEY: string = (process.env.POSTHOG_API_KEY as string) || "";
export const POSTHOG_URL = process.env.POSTHOG_URL || undefined;
export const DISABLE_ANONYMOUS = process.env.DISABLE_ANONYMOUS || false;
export const OPID_LOGIN_SCREEN_PROVIDER = process.env.OPID_LOGIN_SCREEN_PROVIDER;
export const isMobile = (): boolean => window.innerWidth <= 800 || window.innerHeight <= 600;