-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement authorization bearer token user prompt
If there is no saved token, we show the Spotify web site and intercept the user's login to grab the token and store it. Then we continue as usual. If the token is stored, we grab it from the disk cache and get right to business. This doesn't solve for token expiration, which I will implement later most probably by extracting the token prompt logic to its own file and re-displaying the Spotify web page window so the user can login again and refresh the token.
- Loading branch information
1 parent
e31bdbf
commit 2355103
Showing
2 changed files
with
55 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ node_modules | |
bun.lockb | ||
lyrics/* | ||
!lyrics/.gitkeep | ||
token.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters