Skip to content

Commit 7d98124

Browse files
authored
chore(authentication): merge fallback empty objects (#1243)
1 parent 21c977f commit 7d98124

File tree

1 file changed

+1
-1
lines changed
  • modules/authentication/src/handlers

1 file changed

+1
-1
lines changed

modules/authentication/src/handlers/local.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ export class LocalHandlers implements IAuthenticationStrategy {
305305
email,
306306
hashedPassword,
307307
isVerified,
308-
...merge(userInvitationExtensionData, userData),
308+
...merge(userInvitationExtensionData ?? {}, userData ?? {}),
309309
});
310310
}
311311
delete user.hashedPassword;

0 commit comments

Comments
 (0)