mirror of
https://github.com/ramsayleung/rspotify.git
synced 2026-04-25 23:45:52 +03:00
[PR #553] [MERGED] Enhance resilience in OAuth flow #535
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#535
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/553
Author: @richardhapb
Created: 2/23/2026
Status: ✅ Merged
Merged: 2/24/2026
Merged by: @ramsayleung
Base:
master← Head:improve-resilience-in-oauth-flow📝 Commits (2)
b2c2579feat: Enhance resilience in OAuth flow240e178fix: remove unused import in rspotify-macros📊 Changes
2 files changed (+11 additions, -5 deletions)
View changed files
📝
rspotify-macros/src/lib.rs(+0 -2)📝
src/clients/oauth.rs(+11 -3)📄 Description
Fixes #552
Description
Problem:
When the cached token is broken, the OAuth flow
fails and doesn't try to refresh the token.
Solution:
Fallback to prompt the user for the OAuth flow to
refetch the token and re-cache it.
Type of change
Please delete options that are not relevant.
How has this been tested?
user_client_token.jsoncache fileIs this change properly documented?
I am not sure if this should be included in the CHANGELOG.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.