From 19fa53c981ccffc5d1603a4147eecf7a492f130a Mon Sep 17 00:00:00 2001 From: Abdalhamid Alhamad Date: Tue, 17 Jun 2025 11:39:46 +0300 Subject: [PATCH] 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, });