Skip to content

Commit

Permalink
[pocketbase#207] use read-only scopes for the GitHub OAuth2 provider
Browse files Browse the repository at this point in the history
  • Loading branch information
satotake authored Jul 24, 2022
1 parent 7926501 commit 88d8cec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/auth/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ type Github struct {
// NewGithubProvider creates new Github provider instance with some defaults.
func NewGithubProvider() *Github {
return &Github{&baseProvider{
scopes: []string{"user"},
scopes: []string{"read:user", "user:email"},
authUrl: "https://github.com/login/oauth/authorize",
tokenUrl: "https://github.com/login/oauth/access_token",
userApiUrl: "https://api.github.com/user",
Expand Down

0 comments on commit 88d8cec

Please sign in to comment.