You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am making a Discord bot that creates playlists from song links that are post in a Discord channel. I am running into the following error: Error: Bad or expired token. This can happen if the user revoked a token or the access token has expired. You should re-authenticate the user. In the docs it says to use the client credentials if you are making a server side application.
The authentication part runs without error but the profile part throws the error. If I hardcode my user id and try creating the playlist with the following code I just the same error:
Client credentials are used for server-side authentication limited to non-user-related functionality; hence the playlist API is being rejected. It would be great to know if this would be allowed in the future from Spotify.
I am making a Discord bot that creates playlists from song links that are post in a Discord channel. I am running into the following error:
Error: Bad or expired token. This can happen if the user revoked a token or the access token has expired. You should re-authenticate the user.
In the docs it says to use the client credentials if you are making a server side application.This is the relevant code:
The authentication part runs without error but the profile part throws the error. If I hardcode my user id and try creating the playlist with the following code I just the same error:
The text was updated successfully, but these errors were encountered: