The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Treat Google policy_enforced as a permanent OAuth error (#25148)
neo7736b35d0a5bd65
diff --git a/packages/twenty-server/src/modules/connected-account/refresh-tokens-manager/drivers/google/constants/google-permanent-oauth-error-codes.constant.ts b/packages/twenty-server/src/modules/connected-account/refresh-tokens-manager/drivers/google/constants/google-permanent-oauth-error-codes.constant.tsindex bf1b3e7b81e..93352702ef7 100644--- a/packages/twenty-server/src/modules/connected-account/refresh-tokens-manager/drivers/google/constants/google-permanent-oauth-error-codes.constant.ts+++ b/packages/twenty-server/src/modules/connected-account/refresh-tokens-manager/drivers/google/constants/google-permanent-oauth-error-codes.constant.ts@@ -8,4 +8,5 @@ export const GOOGLE_PERMANENT_OAUTH_ERROR_CODES = new Set(['unsupported_grant_type','invalid_scope','admin_policy_enforced',+ 'policy_enforced',]);