Var name changes
parent
83ce18bfdc
commit
3311e9d954
|
@ -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'
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue