From d2cc02fb6077537d44b8f8749f83c9240a11d018 Mon Sep 17 00:00:00 2001 From: Abdalhamid Alhamad Date: Tue, 17 Jun 2025 09:43:36 +0300 Subject: [PATCH 1/2] fix: localizze error messages --- src/i18n/ar/app.json | 3 ++- src/i18n/en/app.json | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/i18n/ar/app.json b/src/i18n/ar/app.json index c4a650f..1ce9b9e 100644 --- a/src/i18n/ar/app.json +++ b/src/i18n/ar/app.json @@ -10,7 +10,8 @@ "INVALID_BIOMETRIC": "البيانات البيومترية المقدمة غير صالحة. يرجى المحاولة مرة أخرى أو إعادة إعداد المصادقة البيومترية.", "PASSWORD_MISMATCH": "كلمات المرور التي أدخلتها غير متطابقة. يرجى إدخال كلمات المرور مرة أخرى.", "INVALID_PASSCODE": "رمز المرور الذي أدخلته غير صحيح. يرجى المحاولة مرة أخرى.", - "PASSCODE_ALREADY_SET": "تم تعيين رمز المرور بالفعل." + "PASSCODE_ALREADY_SET": "تم تعيين رمز المرور بالفعل.", + "APPLE_RE-CONSENT_REQUIRED": "إعادة الموافقة على آبل مطلوبة. يرجى إلغاء تطبيقك من إعدادات معرف آبل الخاصة بك والمحاولة مرة أخرى." }, "USER": { diff --git a/src/i18n/en/app.json b/src/i18n/en/app.json index d7bc7b7..64b6c26 100644 --- a/src/i18n/en/app.json +++ b/src/i18n/en/app.json @@ -10,7 +10,8 @@ "INVALID_BIOMETRIC": "The biometric data provided is invalid. Please try again or reconfigure your biometric settings.", "PASSWORD_MISMATCH": "The passwords you entered do not match. Please re-enter the passwords.", "INVALID_PASSCODE": "The passcode you entered is incorrect. Please try again.", - "PASSCODE_ALREADY_SET": "The pass code has already been set." + "PASSCODE_ALREADY_SET": "The pass code has already been set.", + "APPLE_RE-CONSENT_REQUIRED": "Apple re-consent is required. Please revoke the app from your Apple ID settings and try again." }, "USER": { From 19fa53c981ccffc5d1603a4147eecf7a492f130a Mon Sep 17 00:00:00 2001 From: Abdalhamid Alhamad Date: Tue, 17 Jun 2025 11:39:46 +0300 Subject: [PATCH 2/2] fix: fix apple client audience --- src/auth/services/oauth2.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/auth/services/oauth2.service.ts b/src/auth/services/oauth2.service.ts index 0af8b39..a3577bb 100644 --- a/src/auth/services/oauth2.service.ts +++ b/src/auth/services/oauth2.service.ts @@ -49,7 +49,7 @@ export class Oauth2Service { const payload = this.jwtService.verify(appleToken, { publicKey, algorithms: ['RS256'], - audience: this.configService.getOrThrow('APPLE_CLIENT_ID'), + audience: this.configService.getOrThrow('APPLE_CLIENT_ID').split(','), issuer: this.appleIssuer, });