You need to sign in to do that
Don't have an account?
SK_SF
SFDX: authorize a Dev Hub is failing with below error.
Trying to authorize a dev hub using sandbox username and password.
and getting below error :
sfdx force:auth:web:login --setdefaultdevhubusername
ERROR running auth:web:login: Invalid client credentials. Verify the OAuth client secret and ID. Error authenticating with auth code due to: authentication failure
18:58:20.917 sfdx force:auth:web:login --setdefaultdevhubusername
ended with exit code 1
Can anyone please help on this?
and getting below error :
sfdx force:auth:web:login --setdefaultdevhubusername
ERROR running auth:web:login: Invalid client credentials. Verify the OAuth client secret and ID. Error authenticating with auth code due to: authentication failure
18:58:20.917 sfdx force:auth:web:login --setdefaultdevhubusername
ended with exit code 1
Can anyone please help on this?
I was trying to authorize dev hub using sandbox due to that this above error was comming in my case. And we must need to use the credentials of org on which you have enabled the Dev Hub. I used my prod credential to authorize dev and that worked for me.
All Answers
Was this working earlier?
I am trying first time, Any idea on that error?
Incase this doesn't fix, I'd recommend trying the other approaches that worked for users on this thread
If this information helps, please mark the answer as best. Thank you
I was trying to authorize dev hub using sandbox due to that this above error was comming in my case. And we must need to use the credentials of org on which you have enabled the Dev Hub. I used my prod credential to authorize dev and that worked for me.