Skip to content

Commit

Permalink
Don't hardcode oauth scopes
Browse files Browse the repository at this point in the history
  • Loading branch information
partydragen committed Aug 11, 2024
1 parent 5715774 commit c5d53ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/classes/Misc/NamelessOAuth.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public function getProvidersAvailable(): array

$providers[$provider_name] = [
'url' => $provider->getAuthorizationUrl([
'scope' => [
'scope' => $provider_data['scopes'] ?? [
$provider_data['scope_id_name'],
'email',
],
Expand Down

0 comments on commit c5d53ec

Please sign in to comment.