[PR #453] [MERGED] Add option to create AuthCodeSpotify with token and refresh #464

Closed
opened 2026-02-27 20:24:49 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ramsayleung/rspotify/pull/453
Author: @kevmeyer
Created: 1/7/2024
Status: Merged
Merged: 1/8/2024
Merged by: @ramsayleung

Base: masterHead: km_refresh_fixes


📝 Commits (2)

  • 13c34ea AuthCode: Fail in refetch, if no token present
  • 2ef1637 AuthCode: Add constructor with token and config

📊 Changes

1 file changed (+23 additions, -2 deletions)

View changed files

📝 src/auth_code.rs (+23 -2)

📄 Description

Description

Fixes: https://github.com/ramsayleung/rspotify/issues/446

Motivation and Context

Being able to restore a token from cache and also refreshing it.

Dependencies

Type of change

  • New feature (non-breaking change which adds functionality)

How has this been tested?

Use token from cache and refresh it successfully.

Is this change properly documented?

Example code was not changed.


🔄 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/ramsayleung/rspotify/pull/453 **Author:** [@kevmeyer](https://github.com/kevmeyer) **Created:** 1/7/2024 **Status:** ✅ Merged **Merged:** 1/8/2024 **Merged by:** [@ramsayleung](https://github.com/ramsayleung) **Base:** `master` ← **Head:** `km_refresh_fixes` --- ### 📝 Commits (2) - [`13c34ea`](https://github.com/ramsayleung/rspotify/commit/13c34ea0929ee37467d855a7f37b521ff3e2b11b) AuthCode: Fail in refetch, if no token present - [`2ef1637`](https://github.com/ramsayleung/rspotify/commit/2ef163707e5cec37f9ce61545ccf11760b3387fe) AuthCode: Add constructor with token and config ### 📊 Changes **1 file changed** (+23 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `src/auth_code.rs` (+23 -2) </details> ### 📄 Description ## Description Fixes: https://github.com/ramsayleung/rspotify/issues/446 ## Motivation and Context Being able to restore a token from cache and also refreshing it. ## Dependencies ## Type of change - [ ] New feature (non-breaking change which adds functionality) ## How has this been tested? Use token from cache and refresh it successfully. ## Is this change properly documented? Example code was not changed. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 20:24:49 +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/rspotify#464
No description provided.