mirror of
https://github.com/jwilsson/spotify-web-api-php.git
synced 2026-04-27 07:55:49 +03:00
[PR #126] [MERGED] Better support for refresh tokens #262
Labels
No labels
bug
docs
enhancement
enhancement
enhancement
feedback wanted
good first issue
help wanted
help wanted
help wanted
invalid
pull-request
question
question
upstream
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotify-web-api-php#262
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/jwilsson/spotify-web-api-php/pull/126
Author: @shivampaw
Created: 5/31/2018
Status: ✅ Merged
Merged: 6/3/2018
Merged by: @jwilsson
Base:
master← Head:master📝 Commits (2)
efae404Allow the refresh token to be set - useful when automating a refreshef666f1When refreshing token, if one isn't set in the class then set it to the one passed through📊 Changes
1 file changed (+13 additions, -1 deletions)
View changed files
📝
src/Session.php(+13 -1)📄 Description
Currently if you call a refresh like this:
You could end up with an error if the refresh token in the class isn't updated. This fixes this by setting the refresh token to the refresh token passed through if it hasn't been updated or isn't already set.
Also adds a setter for the refresh token which can be useful or an alternative to the above requiring an extra line of code before calling the
refreshAccessTokenmethod.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.