enter image description hereMy vscode version is 1.30.1 and my sfdx version is sfdx-cli/6.44.0-dead729fb5 (darwin-x64) node-v8.9.4. I created 3-4 dev hug orgs and tried to create a scratch org from it but it is not working. I am keep getting the following error when I run the create command not sure what I am doing wrong here

sfdx force:org:create -f config/project-scratch-def.json --setalias LWC --durationdays 7 --setdefaultusername

ERROR: Error authenticating with the refresh token due to: expired access/refresh token.

  • Have you authorized your dev-hub as sfdx force:auth:web:login -d -a DevHub ? – Pranay Jaiswal Jan 3 at 14:45
  • Yes I authorised my dev hub org sucessfully – Tariq Jan 3 at 14:48
  • When you run force:org:list, do you still see your DevHub as connected ? – Fabien Taillon Jan 3 at 15:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.