From 74cefea4b7b3577e411a75142c55d237ba9e8799 Mon Sep 17 00:00:00 2001 From: francescochiapello Date: Tue, 11 Mar 2025 21:42:24 +0100 Subject: [PATCH] fix(oauth): return updated object `value` key instead of complex patched object that causes crash --- packages/authentication-oauth/src/strategy.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/authentication-oauth/src/strategy.ts b/packages/authentication-oauth/src/strategy.ts index 4bfe2589fc..8ed1984588 100644 --- a/packages/authentication-oauth/src/strategy.ts +++ b/packages/authentication-oauth/src/strategy.ts @@ -166,7 +166,7 @@ export class OAuthStrategy extends AuthenticationBaseStrategy { const authEntity = !existingEntity ? await this.createEntity(profile, params) - : await this.updateEntity(existingEntity, profile, params) + : (await this.updateEntity(existingEntity, profile, params)).value return { authentication: { strategy: this.name },