From 196486630ab819c67bc6bee390f3582c4caf1b83 Mon Sep 17 00:00:00 2001 From: Enache Adelina Date: Thu, 13 Jun 2024 14:50:39 +0300 Subject: [PATCH] fix(apple): replace backspaces --- src/oauth/factory/apple/apple-strategy.factory.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/oauth/factory/apple/apple-strategy.factory.ts b/src/oauth/factory/apple/apple-strategy.factory.ts index 75e7526..c6f561f 100644 --- a/src/oauth/factory/apple/apple-strategy.factory.ts +++ b/src/oauth/factory/apple/apple-strategy.factory.ts @@ -15,7 +15,9 @@ export class AppleOAuthStrategyFactory implements OAuthStrategyFactory { this.clientID = this.configService.get('APPLE_CLIENT_ID'); this.teamID = this.configService.get('APPLE_TEAM_ID'); this.keyID = this.configService.get('APPLE_KEY_ID'); - this.key = this.configService.get('APPLE_KEY'); + this.key = this.configService + .get('APPLE_KEY') + .replace(/\\n/gm, '\n'); this.callbackURL = this.configService.get('APPLE_CALLBACK_URL'); }