From 7d9812478d60ba351cb007b83050eebf6c90c0b1 Mon Sep 17 00:00:00 2001 From: Rena Tsagka <57152951+Renc17@users.noreply.github.com> Date: Wed, 4 Dec 2024 17:21:55 +0200 Subject: [PATCH] chore(authentication): merge fallback empty objects (#1243) --- modules/authentication/src/handlers/local.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/authentication/src/handlers/local.ts b/modules/authentication/src/handlers/local.ts index f3b9fd6ba..cc85106b7 100644 --- a/modules/authentication/src/handlers/local.ts +++ b/modules/authentication/src/handlers/local.ts @@ -305,7 +305,7 @@ export class LocalHandlers implements IAuthenticationStrategy { email, hashedPassword, isVerified, - ...merge(userInvitationExtensionData, userData), + ...merge(userInvitationExtensionData ?? {}, userData ?? {}), }); } delete user.hashedPassword;