wix-incubator / DeviantArt-API

The DeviantArt API
https://www.deviantart.com/developers/
MIT License
35 stars 5 forks source link

Invalid redirect uri when developing locally #195

Closed SeinopSys closed 2 years ago

SeinopSys commented 2 years ago

This is quite annoying when developing a Next.js app locally, I added http://localhost:3000 to the redirect URI list but any attempt to send this as the redirect URI just results in a 400 response:

POST https://www.deviantart.com/oauth2/token

{"error":"invalid_request","error_description":"redirect_uri does not match authorized redirect_uri.","status":"error"}
SeinopSys commented 2 years ago

Never mind, issue was caused by not sending any redirect_uri in the request by accident. I still think it would be helpful to see the provided redirect URI in this response, but my problem was resolved.