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'); }