mirror of
https://github.com/Mail-0/Zero.git
synced 2026-07-01 08:16:28 +00:00
chore: remove FORCE_GMAIL_CONSENT variable from development and production configurations
This commit is contained in:
@@ -36,9 +36,6 @@ export const authProviders = (env: Record<string, string>): ProviderConfig[] =>
|
||||
{ name: 'GOOGLE_CLIENT_SECRET', source: 'Google Cloud Console' },
|
||||
],
|
||||
config: {
|
||||
// TODO: Remove this before going to prod, it's to force to get `refresh_token` from google, some users don't have it yet.
|
||||
prompt:
|
||||
env.NODE_ENV === 'production' && env.FORCE_GMAIL_CONSENT !== 'true' ? undefined : 'consent',
|
||||
accessType: 'offline',
|
||||
scope: [
|
||||
'https://www.googleapis.com/auth/gmail.modify',
|
||||
|
||||
@@ -51,7 +51,6 @@
|
||||
],
|
||||
"vars": {
|
||||
"NODE_ENV": "development",
|
||||
"FORCE_GMAIL_CONSENT": "true",
|
||||
"COOKIE_DOMAIN": "localhost",
|
||||
"VITE_PUBLIC_BACKEND_URL": "http://localhost:8787",
|
||||
"VITE_PUBLIC_APP_URL": "http://localhost:3000",
|
||||
@@ -124,7 +123,6 @@
|
||||
],
|
||||
"vars": {
|
||||
"NODE_ENV": "development",
|
||||
"FORCE_GMAIL_CONSENT": "true",
|
||||
"COOKIE_DOMAIN": "0.email",
|
||||
"VITE_PUBLIC_BACKEND_URL": "https://sapi.0.email",
|
||||
"VITE_PUBLIC_APP_URL": "https://staging.0.email",
|
||||
@@ -194,7 +192,6 @@
|
||||
],
|
||||
"vars": {
|
||||
"NODE_ENV": "production",
|
||||
"FORCE_GMAIL_CONSENT": "true",
|
||||
"COOKIE_DOMAIN": "0.email",
|
||||
"VITE_PUBLIC_BACKEND_URL": "https://api.0.email",
|
||||
"VITE_PUBLIC_APP_URL": "https://0.email",
|
||||
|
||||
Reference in New Issue
Block a user