mirror of
https://github.com/ramsayleung/rspotify.git
synced 2026-04-26 07:55:55 +03:00
[PR #434] [MERGED] Bug Fix: Set refresh token to new access token before callback_fn is called #453
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#453
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/434
Author: @JoeyEamigh
Created: 8/14/2023
Status: ✅ Merged
Merged: 8/14/2023
Merged by: @ramsayleung
Base:
master← Head:master📝 Commits (1)
1cb8a87set refresh token to token before callback_fn📊 Changes
1 file changed (+2 additions, -1 deletions)
View changed files
📝
src/auth_code.rs(+2 -1)📄 Description
Description
callback_fnwas not returning the refresh token inAuthCodeSpotify, so I simply moved thetoken.refresh_token = Some(refresh_token.to_string());above thecallback_fndirective to solve this problem.Motivation and Context
Refresh token was not being returned after
refetch_tokenwas called.Type of change
Please delete options that are not relevant.
How has this been tested?
I used it in my project and it does work. It is a two line
Is this change properly documented?
I figure this can be done once the PR is in.
Thanks for the great library!
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.