chore: updating the default scopes of GitHub SSO (#2746)

Updating the default scopes of GitHub SSO

The scope of "user" in GitHub OAuth includes permissions to update a user's profile.
This commit is contained in:
Wen Sun 2024-01-12 15:02:11 +09:00 committed by GitHub
parent a7cda28fc7
commit 81942b3b98
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -21,7 +21,7 @@ const templateList: IdentityProvider[] = [
authUrl: "https://github.com/login/oauth/authorize",
tokenUrl: "https://github.com/login/oauth/access_token",
userInfoUrl: "https://api.github.com/user",
scopes: ["user"],
scopes: ["read:user"],
fieldMapping: {
identifier: "login",
displayName: "name",