chore: remove FORCE_GMAIL_CONSENT variable from development and production configurations

This commit is contained in:
Aj Wazzan
2025-05-23 12:49:19 -07:00
parent b79941a02e
commit 3ca7dc89d0
2 changed files with 0 additions and 6 deletions

View File

@@ -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',

View File

@@ -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",