mirror of
https://github.com/ramsayleung/rspotify.git
synced 2026-04-26 07:55:55 +03:00
[PR #277] [MERGED] Optionally load expired tokens from the cache #366
Labels
No labels
Stale
bug
discussion
enhancement
good first issue
good first issue
help wanted
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/rspotify#366
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/ramsayleung/rspotify/pull/277
Author: @DusterTheFirst
Created: 10/22/2021
Status: ✅ Merged
Merged: 10/26/2021
Merged by: @marioortizmanero
Base:
master← Head:patch-1📝 Commits (8)
de11b4eOptionally load expired tokens from the cache3f48775Apply change to ClientCredsSpotify implmentation7350582Fix wrong logice84fd84Swap conditions around to match both files9bffeccRevert change to client_creds and more docf81552dUpdate implementation ofprompt_for_tokenebdb897Ensure token was refreshed71fda2aAddress suggestions📊 Changes
2 files changed (+50 additions, -8 deletions)
View changed files
📝
src/client_creds.rs(+1 -2)📝
src/clients/oauth.rs(+49 -6)📄 Description
Description
Adds a parameter to the
read_token_cachefunction to allow loading expired tokens from the cache. This can be useful in cases where the user wants to access the refresh token stored in the token cache.Closes #276
Motivation and Context
See #276
Type of change
How Has This Been Tested?
This change has a very predicable effect on the code and has not been tested. If it is required I can add test cases for this function or otherwise test it further
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
chrono::Durationusage in the API #423