I'm looking into a way of handle automatic access token refresh for a scratch org and sfdx auth:sfdxurl:store
looks like a good candidate. This command requires a sfdxAuthUrl
.
When I sfdx auth:web:login
into my scratch org I obtain the sfdxAuthUrl
with sfdx force:org:display -u [email protected] --verbose --json
.
Yet, when I do the same command from a newly created scratch org (just after cci flow run
) the json's output has no sfdxAuthUrl
. There is a way to obtain it from cci without having to first authenticate with the browser?
Or there is a better way to solve my original problem (access token refresh without browser and human intervention)?
sfdxAuthUrl
is not available when the devhub is authenticated with the jwt flow.