mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 08:58:35 +00:00
feat: update spotify OAuth provider
This commit is contained in:
parent
996504043e
commit
cf44f8c03d
1 changed files with 3 additions and 1 deletions
|
|
@ -144,6 +144,8 @@ class Spotify extends OAuth2
|
|||
/**
|
||||
* Check if the OAuth email is verified
|
||||
*
|
||||
* @link https://developer.spotify.com/documentation/web-api/reference/#/operations/get-current-users-profile
|
||||
*
|
||||
* @param $accessToken
|
||||
*
|
||||
* @return bool
|
||||
|
|
@ -179,7 +181,7 @@ class Spotify extends OAuth2
|
|||
if (empty($this->user)) {
|
||||
$this->user = \json_decode($this->request(
|
||||
'GET',
|
||||
$this->resourceEndpoint . "me",
|
||||
$this->resourceEndpoint . 'me',
|
||||
['Authorization: Bearer '.\urlencode($accessToken)]
|
||||
), true);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue