Skip to content

Commit 0fe974e

Browse files
committed
Fix GitHub OAuth: use === instead of = in user email matching (#3877)
1 parent 97f761d commit 0fe974e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

server/config/passport.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ passport.use(
177177
// with emails that are connected to the same GitHub account
178178
if (existingEmailUsers.length > 1) {
179179
existingEmailUser = existingEmailUsers.find(
180-
(u) => (u.email = primaryEmail)
180+
(u) => u.email === primaryEmail
181181
);
182182
} else {
183183
[existingEmailUser] = existingEmailUsers;

0 commit comments

Comments
 (0)