Skip to content

Commit

Permalink
Add user-read-email as default scope for Spotify client
Browse files Browse the repository at this point in the history
  • Loading branch information
engram-design committed Dec 26, 2023
1 parent 1f5696e commit d8ca65e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/clients/spotify/provider/Spotify.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,10 @@ public function getResourceOwnerDetailsUrl(AccessToken $token): string
*/
protected function getDefaultScopes(): array
{
return [];
return [
// Don't use enum's until PHP 8.1 support can be guaranteed
'user-read-email',
];
}

/**
Expand Down

0 comments on commit d8ca65e

Please sign in to comment.