bih / spotify-token-swap-service

Swap tokens for using Spotify APIs and SDKs, made really simple 🔑 ⛓
MIT License
41 stars 26 forks source link

Can't get a token from Heroku (invalid_grant error) #12

Closed LucasAbijmil closed 3 years ago

LucasAbijmil commented 3 years ago

Hello, I deployed my application with Heroku from the button in the Readme. However, when I try to get a token from my command line with curl -X POST -d "code=[mycode]" https://myapplication.herokuapp.com/api/token, I get the following error : {"error":"invalid_grant","error_description":"Invalid authorization code"}

I rechecked the steps, but I can't figure out what's wrong. I also want to mention that when I open my application on Heroku, I get the following <h1>: "Not Found".

Any help would be appreciated, Thanks