mirror of
https://github.com/ramsayleung/rspotify.git
synced 2026-04-25 23:45:52 +03:00
[PR #262] [MERGED] support refresh token v2 #354
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#354
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/262
Author: @ramsayleung
Created: 10/10/2021
Status: ✅ Merged
Merged: 10/12/2021
Merged by: @marioortizmanero
Base:
master← Head:ramsay_support_refresh_token_v2📝 Commits (10+)
b9761edAdd two examplese3175e6Add customized mutex type0eadefdAdd doc and helper functions84155f4add refresh_token logiccc72457fix compile error7088f7ffix examplea5438efRemove refresh token509eed3cargo fmt filesb04e9ceFix failed tests30bdbd1Fix faield tests📊 Changes
22 files changed (+558 additions, -164 deletions)
View changed files
📝
Cargo.toml(+15 -0)📝
examples/auth_code_pkce.rs(+4 -9)📝
examples/oauth_tokens.rs(+6 -3)➕
examples/tasks.rs(+44 -0)➕
examples/ureq/threading.rs(+45 -0)➕
examples/with_auto_reauth.rs(+124 -0)📝
examples/with_refresh_token.rs(+4 -12)📝
rspotify-model/src/auth.rs(+5 -3)📝
rspotify-model/src/idtypes.rs(+77 -20)📝
src/auth_code.rs(+32 -33)📝
src/auth_code_pkce.rs(+27 -26)📝
src/client_creds.rs(+30 -17)📝
src/clients/base.rs(+63 -12)📝
src/clients/mod.rs(+4 -3)➕
src/clients/mutex/futures.rs(+18 -0)➕
src/clients/mutex/mod.rs(+12 -0)➕
src/clients/mutex/sync.rs(+1 -0)📝
src/clients/oauth.rs(+3 -8)📝
src/lib.rs(+5 -1)📝
tests/test_models.rs(+10 -5)...and 2 more files
📄 Description
Description
Closed #224 since the original PR isn't fresh anymore, it's a mess. Recreating a new PR to implement refresh token feature
Motivation and Context
Dependencies
None
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce.
Please also list any relevant details for your test configuration
Test A: examples/with_reauth_token
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.