Skip to content

Commit 4ab1a42

Browse files
committed
Only require Github email read access
1 parent 38af463 commit 4ab1a42

File tree

1 file changed

+5
-4
lines changed
  • app/config/packages/artdarek/oauth-4-laravel

1 file changed

+5
-4
lines changed
Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
<?php
22

3+
use OAuth\OAuth2\Service\GitHub;
4+
35
return [
46
'storage' => 'Session',
5-
67
'consumers' => [
78
'GitHub' => [
8-
'client_id' => getenv('GITHUB_CLIENT_ID'),
9+
'client_id' => getenv('GITHUB_CLIENT_ID'),
910
'client_secret' => getenv('GITHUB_CLIENT_SECRET'),
10-
'scope' => ['user'],
11+
'scope' => [GitHub::SCOPE_USER_EMAIL],
1112
],
1213
],
13-
];
14+
];

0 commit comments

Comments
 (0)