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;