- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I've created authorization code flow with PKCE in JavaScript for my personal website to access top tracks and artists from the user and display them on the page. My issue right now is that I'm new to API's and I'm not sure how to use the refresh token.
So, the concept is that after you get the access token, you get an expiration time, and a refresh token. I use the access token to get the top tracks and artists. But I'm unsure of the process after that. You wait for the 3600 seconds, then you send the POST request with the refresh token. Then what? Do I have to do anything with the new access token? Do I infinitely use the refresh token to get new access tokens? And when I get the new access token, do I have to re-request the top tracks and artists?
Hopefully that's understandable,
Thanks!
Solved! Go to Solution.
- Labels:
-
authorization
-
refresh tokens
-
spotify api
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page