my redirect uri - http://localhost:3000/login
Please share your UCC. Weāll review this and respond.
Meanwhile, usual reasons for invalid credentials typically involve inconsistencies in client_id
, client_secret
, response_type
, or redirect_uri
. Ensure these values perfectly match what you entered during the app creation process.
2YA7YQ
Everything looks fine to me. I still get that.
It appears that there are two apps under your registration, and attempts to access the API through both have resulted in āInvalid Credentialsā errors.
The issue seems to be with incorrect redirect URIs used in your authorization calls. Here are the specific discrepancies:
- For App 1, the registered redirect URI is
http://127.0.0.1:3000/login
, but the API call usedhttp://localhost:3000/login
. - For App 2, the registered redirect URI is
http://localhost:3000/login
, whereas the API call was made tohttp://localhost:3000/login/
. Note the additional slash at the end of the URI.
Please rectify these discrepancies in the redirect URIs and attempt the authorization process again.
Thank you!
I changed the URIās temporarily to test a few things, but the correct URIās donāt work either.
Please provide the URL youāre using to initiate the login. For security purposes, you may omit the client_id when sharing this information.
Thanks!
https://api.upstox.com/v2/login/authorization/dialog?response_type=code&client_id=[CLIENT_ID]&redirect_uri=http://localhost:3000/login&state=test
Weāve resolved the issue on our end. Please try again and inform us if itās working for you now.
Thanks!
Thanks, Its working now.
Thanks for confirming. Happy coding!!