[GH-ISSUE #446] AuthCodeSpotify with token and refresh #148

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

Originally created by @fragsalat on GitHub (Nov 14, 2023).
Original GitHub issue: https://github.com/ramsayleung/rspotify/issues/446

Hey there, thanks for the nice work first of all.

Is your feature request related to a problem? Please describe.
I would like to have the ability to create an instance of AuthCodeSpotify with token and client credentials passed. Right now only either is possible through ::new() or ::from_token(). I also can't create an instance and update props later on. Creating an instance with ::from_token() and passing a token which is outdated tries to call refresh_token, but the instance is missing credentials.

Describe the solution you'd like
I see multiple options

  1. allow to pass token with ::new() function
  2. allow to pass credentials and oauth with ::from_token() function
  3. make http field public to use AuthCodeSpotify {} construction

Describe alternatives you've considered
Forking the library and working with the fork

Additional context

Originally created by @fragsalat on GitHub (Nov 14, 2023). Original GitHub issue: https://github.com/ramsayleung/rspotify/issues/446 Hey there, thanks for the nice work first of all. **Is your feature request related to a problem? Please describe.** I would like to have the ability to create an instance of AuthCodeSpotify with token and client credentials passed. Right now only either is possible through ::new() or ::from_token(). I also can't create an instance and update props later on. Creating an instance with ::from_token() and passing a token which is outdated tries to call refresh_token, but the instance is missing credentials. **Describe the solution you'd like** I see multiple options 1. allow to pass token with ::new() function 2. allow to pass credentials and oauth with ::from_token() function 3. make http field public to use AuthCodeSpotify {} construction **Describe alternatives you've considered** Forking the library and working with the fork **Additional context**
kerem 2026-02-27 20:23:24 +03:00
Author
Owner

@ramsayleung commented on GitHub (Jan 9, 2024):

I think this feature request has been implemented.

<!-- gh-comment-id:1882489132 --> @ramsayleung commented on GitHub (Jan 9, 2024): I think this feature request has been implemented.
Author
Owner

@fragsalat commented on GitHub (Jan 9, 2024):

Yes, thanks a lot :)

<!-- gh-comment-id:1882700885 --> @fragsalat commented on GitHub (Jan 9, 2024): Yes, thanks a lot :)
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#148
No description provided.