Var name changes

feature/saml-login
Omar López 2022-01-12 21:10:36 -07:00
parent 83ce18bfdc
commit 3311e9d954
2 changed files with 4 additions and 4 deletions

View File

@ -16,9 +16,9 @@ GOOGLE_API_CREDENTIALS='{}'
# To enable Login with Google you need to:
# 1. Set `GOOGLE_API_CREDENTIALS`
# 2. Set `GOOGLE_ENABLE_LOGIN` to `true`
# 2. Set `GOOGLE_LOGIN_ENABLED` to `true`
# 3. Setup `SAML_DATABASE_URL` and `SAML_ADMINS` down below.
GOOGLE_ENABLE_LOGIN=false
GOOGLE_LOGIN_ENABLED=false
BASE_URL='http://localhost:3000'
NEXT_PUBLIC_APP_URL='http://localhost:3000'

View File

@ -1,5 +1,5 @@
export const GOOGLE_API_CREDENTIALS = process.env.GOOGLE_API_CREDENTIALS || "{}";
export const { client_id: GOOGLE_CLIENT_ID, client_secret: GOOGLE_CLIENT_SECRET } =
JSON.parse(GOOGLE_API_CREDENTIALS)?.web;
export const GOOGLE_ENABLE_LOGIN = process.env.GOOGLE_ENABLE_LOGIN === "true";
export const IS_GOOGLE_LOGIN_ENABLED = !!(GOOGLE_CLIENT_ID && GOOGLE_CLIENT_SECRET && GOOGLE_ENABLE_LOGIN);
export const GOOGLE_LOGIN_ENABLED = process.env.GOOGLE_LOGIN_ENABLED === "true";
export const IS_GOOGLE_LOGIN_ENABLED = !!(GOOGLE_CLIENT_ID && GOOGLE_CLIENT_SECRET && GOOGLE_LOGIN_ENABLED);