Skip to content

Commit 7f38ebf

Browse files
committed
docs: Fix GitHub login guide
1 parent 3c12b72 commit 7f38ebf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/guides/basics/login.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ class GitHubStrategy extends OAuthStrategy {
220220
// The GitHub profile image
221221
avatar: profile.avatar_url,
222222
// The user email address (if available)
223-
email: profile.email
223+
email: profile.email || profile.login
224224
}
225225
}
226226
}

0 commit comments

Comments
 (0)