Type in your question below and we'll check to see what answers we can find...
If you couldn't find any answers in the previous step then we need to post your question in the community and wait for someone to respond. You'll be notified when that happens.
Simply add some detail to your question and refine the title if needed, choose the relevant category, then post.
Before we can post your question we need you to quickly make an account (or sign in if you already have one).
Don't worry - it's quick and painless! Just click below, and once you're logged in we'll bring you right back here and post your question. We'll remember what you've already typed in so you won't have to do it again.
My Question or Issue
I am developing a very simple jukebox style app for purely personal use to control my queue and allow others to add songs to it at parties and gathering etc. It will only ever use or need permission to access my own spotify account.
please any advice would be appreciated.
Even though the authorization methods require a redirect uri, the url that you choose for this doesn't need to actually work. For example, you could set the redirect uri to "http://localhost". After being redirected to this URL, just copy the authorization code from the query string manually and proceed with the rest of the authorization process. You only need to do this process once. Refreshing the access token when it is expired is a very simple process that you can easily automate. Spotify tells you when the access token will expire, so, before each api request, check if it is expired and refresh it if necessary. There's nothing complicated about that. There are plenty of libraries that can do this for you.
I don't know what your "app flow" is, so I don't know how to answer your question. Try asking a more specific question.
The authorization methods are what they are, and there's no way to authorize your app other that what the docs describe. Accept that fact.
See https://developer.spotify.com/documentation/web-api/libraries/ for a list of libraries that can implement the authorization process for you.
Sorry for piggy backing on this post, do refresh tokens have an expiration? Can't seem to find it anywhere in the docs.
The refresh token never expires.
For the authorization code flow, you use the same refresh token each time to refresh the access token.
For the authorization code flow with PKCE, the refresh token can only be used to retrieve a new access token and refresh token once, after which the previous refresh token becomes invalid. So, make sure to save the newly returned refresh token.
Hey there you, Yeah, you! 😁 Welcome - we're glad you joined the Spotify Community! While you here, let's have a fun game…