mirror of
https://github.com/ramsayleung/rspotify.git
synced 2026-04-26 07:55:55 +03:00
[GH-ISSUE #380] Allow usage with provided tokens #120
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#120
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?
Originally created by @TPausL on GitHub (Jan 2, 2023).
Original GitHub issue: https://github.com/ramsayleung/rspotify/issues/380
Is your feature request related to a problem? Please describe.
I use authorization via Ory for my app and connect to spotify via them, so i already have authenticated the user. I can't figure out a way to insert that existing token into a rspotify client. I tried manuallly creating a Token from the library but can't access the correct duration and it is a not an intendet use I guess.
Describe the solution you'd like
It would be cool if you could use the api directly (just inserting the provided token to every request or on a per request basis) or create an auth flow from existing (external) data (tokens, expire date).
@ramsayleung commented on GitHub (Jan 6, 2023):
I am not familiar with
Ory, what do you get after authenticating with user?Does this work for you?
@TPausL commented on GitHub (Jan 6, 2023):
Yeah I tried that before. My problem was that the correct type for the date wasn't accessible but i figured it out now with using the defaults and then setting the my access token. In order to refresh these I now create an AuthCodeFlow and set that token manually later. Is there are more elegant way or is that fine?