mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-27 08:35:49 +03:00
[GH-ISSUE #167] Add cache_path as a parameter to prompt_for_user_token() #84
Labels
No labels
api-bug
bug
dependencies
documentation
duplicate
enhancement
external-ide
headless-mode
implicit-grant-flow
invalid
missing-endpoint
pr-welcome
private-api
pull-request
question
spotipy3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotipy#84
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 @jessejoe on GitHub (Mar 2, 2017).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/167
Currently
prompt_for_user_token()setscache_pathto.cache-usernameunder the user's current directory. This is problematic when usingprompt_for_user_token()in other scripts since it will be looking for/creating.cache-usernamefiles in whatever directory the user happens to be in. This causes the user to have to re-authenticate and have duplicate files all over.prompt_for_user_token()should allow the caller to set thecache_pathor possibly even default to creating it inside the user's$HOME.I'm happy to submit a PR for these if either seem like a good idea.