Forum Academy Marketplace Showcase Pricing Features

Spotify Refresh Token

Hi everyone.

I’ve properly set up my Spotify API using the Bubble API Connector. It works great when I connect it to a workflow to authorize and from there I can manipulate the user’s playlists. But when the initial token expires, i’d like to be able to use the refresh token. The trouble is that when I try to use the POST method described here for https://accounts.spotify.com/api/token: https://developer.spotify.com/documentation/general/guides/authorization-guide/#authorization-code-flow

I get “invalid client”.

I’ve tried this a million ways and still get the same error. I think the issue is with the form encode that Spotify requires, because it works perfectly in Postman Here’s my bubble setup:

@nalhassa we’ve released a plugin for Spotify that handles the oauth process and calls the Spotify Search API

Here’s the link to the Bubble plugin

Let us know which API you wish to call, we can add those to it as well.