The error message indicates an issue with either your client_id, the redirect_uri, or possibly both. Could you double-check these credentials and the redirect_uri, ensuring they match precisely with what you provided during the app registration? This includes any trailing slashes.
Thank you!