From d8ca65e982c0b0658dfd36a67abba3710015db23 Mon Sep 17 00:00:00 2001 From: Josh Crawford Date: Tue, 26 Dec 2023 13:51:31 +1100 Subject: [PATCH] Add `user-read-email` as default scope for Spotify client --- src/clients/spotify/provider/Spotify.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/clients/spotify/provider/Spotify.php b/src/clients/spotify/provider/Spotify.php index 2ce5e30..1795202 100644 --- a/src/clients/spotify/provider/Spotify.php +++ b/src/clients/spotify/provider/Spotify.php @@ -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', + ]; } /**