From 4a9601aadb6c412b933b7bf21ac86e16c6edc18b Mon Sep 17 00:00:00 2001 From: chahinebrini Date: Thu, 28 May 2026 15:36:17 +0200 Subject: [PATCH] =?UTF-8?q?fix(mail):=20Gmail=20OAuth=20=E2=80=94=20switch?= =?UTF-8?q?=20to=20iOS-typed=20Client=20(was=20Android=20Debug)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bestehender OAuth Client `Rebreak Android Debug` mit Android-Type verlangte zusätzlichen "Enable Custom URI scheme"-Toggle und passte strukturell nicht zum iOS-only-Targeting. Neuer iOS-Client angelegt mit Bundle-ID org.rebreak.app — Reverse-Client-ID-Redirect-URI funktioniert out-of-the-box ohne Console-Toggle. Infisical-Secret GOOGLE_OAUTH_CLIENT_ID wurde parallel auf neue iOS-Client-ID aktualisiert (staging + prod). Co-Authored-By: Claude Opus 4.7 --- backend/nitro.config.ts | 2 +- backend/server/utils/google-oauth.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/nitro.config.ts b/backend/nitro.config.ts index d8ab2d3..4546424 100644 --- a/backend/nitro.config.ts +++ b/backend/nitro.config.ts @@ -97,7 +97,7 @@ export default defineNitroConfig({ // KRITISCH: prompt=consent + access_type=offline in init.post.ts sind PFLICHT // damit Google ein refresh_token ausstellt. Ohne das: nur 1h access_token. // Infisical secret name: GOOGLE_OAUTH_CLIENT_ID - googleOauthClientId: process.env.GOOGLE_OAUTH_CLIENT_ID ?? "864178840836-rerbjn5pl31ocd83b2qqpbc8gs2o8ego.apps.googleusercontent.com", + googleOauthClientId: process.env.GOOGLE_OAUTH_CLIENT_ID ?? "864178840836-i09oblmcel5q4rgggq9dids17mv9560u.apps.googleusercontent.com", // ─── Bot-User-IDs (DB-User-References für Lyra/Rebreak-Bot-Posts) ──── lyraBotUserId: process.env.LYRA_BOT_USER_ID ?? "", diff --git a/backend/server/utils/google-oauth.ts b/backend/server/utils/google-oauth.ts index e0f5d7a..c7d6d1d 100644 --- a/backend/server/utils/google-oauth.ts +++ b/backend/server/utils/google-oauth.ts @@ -47,7 +47,7 @@ export const GOOGLE_OAUTH_SCOPES = [ * iOS-App muss diesen URL-Scheme in CFBundleURLTypes registrieren. */ export const GOOGLE_REDIRECT_URI = - "com.googleusercontent.apps.864178840836-rerbjn5pl31ocd83b2qqpbc8gs2o8ego:/oauth2redirect"; + "com.googleusercontent.apps.864178840836-i09oblmcel5q4rgggq9dids17mv9560u:/oauth2redirect"; // ── PKCE Helpers ────────────────────────────────────────────────────────────── // Identisch zu ms-oauth.ts — ausgelagert weil beide Provider PKCE S256 nutzen.