[PR #167] [CLOSED] [WIP] Add support for automatically refreshing access tokens #269

Closed
opened 2026-02-27 19:26:53 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/jwilsson/spotify-web-api-php/pull/167
Author: @jwilsson
Created: 9/28/2019
Status: Closed

Base: masterHead: auto-refresh


📝 Commits (5)

  • 9b0b382 Allow passing headers to merge into SpotifyWebAPI::authHeaders()
  • d7f11ee Make preparations to Session
  • ff90a6c Allow setting Session instance on SpotifyWebAPI
  • 9c55f49 Add support for auto refreshing access tokens
  • 1ff3011 Add some basic docs on auto refreshing access tokens

📊 Changes

3 files changed (+251 additions, -102 deletions)

View changed files

docs/examples/automatically-refreshing-access-token.md (+47 -0)
📝 src/Session.php (+15 -3)
📝 src/SpotifyWebAPI.php (+189 -99)

📄 Description

WIP of automatic token refresh as discussed in #137.

Try it out and feel free to come back with feedback, issues and other ideas! Install with:
composer require jwilsson/spotify-web-api-php:dev-auto-refresh.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/jwilsson/spotify-web-api-php/pull/167 **Author:** [@jwilsson](https://github.com/jwilsson) **Created:** 9/28/2019 **Status:** ❌ Closed **Base:** `master` ← **Head:** `auto-refresh` --- ### 📝 Commits (5) - [`9b0b382`](https://github.com/jwilsson/spotify-web-api-php/commit/9b0b382c643db1a415ebf2e773d8251208b59d06) Allow passing headers to merge into SpotifyWebAPI::authHeaders() - [`d7f11ee`](https://github.com/jwilsson/spotify-web-api-php/commit/d7f11ee3ae5206306ca7a9f38894c76bd54b8a08) Make preparations to Session - [`ff90a6c`](https://github.com/jwilsson/spotify-web-api-php/commit/ff90a6c25956c939a233e294d395981963fab9ab) Allow setting Session instance on SpotifyWebAPI - [`9c55f49`](https://github.com/jwilsson/spotify-web-api-php/commit/9c55f49dd022a48ef702370c30486865e3a3204a) Add support for auto refreshing access tokens - [`1ff3011`](https://github.com/jwilsson/spotify-web-api-php/commit/1ff30110fb177f1875e45a4739747f377149c377) Add some basic docs on auto refreshing access tokens ### 📊 Changes **3 files changed** (+251 additions, -102 deletions) <details> <summary>View changed files</summary> ➕ `docs/examples/automatically-refreshing-access-token.md` (+47 -0) 📝 `src/Session.php` (+15 -3) 📝 `src/SpotifyWebAPI.php` (+189 -99) </details> ### 📄 Description WIP of automatic token refresh as discussed in #137. Try it out and feel free to come back with feedback, issues and other ideas! Install with: `composer require jwilsson/spotify-web-api-php:dev-auto-refresh`. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 19:26:53 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotify-web-api-php#269
No description provided.