I'm not sure what the best way to accomplish this is, but with SFDX scratch orgs the site needed for OAuth is not login.salesforce.com but whatever the instance URL of the scratch org is. This is causing problems for me with doing development with SFDX.
One way I could solve this is by loading client_options.site from an environment variable if it exists and using login.salesforce.com otherwise.
I'm happy to do the work needed for a PR on this one, but I'm looking for a little bit of a suggestion just to make sure it fits with the project and isn't rejected when submitted.
I'm not sure what the best way to accomplish this is, but with SFDX scratch orgs the site needed for OAuth is not
login.salesforce.combut whatever the instance URL of the scratch org is. This is causing problems for me with doing development with SFDX.One way I could solve this is by loading
client_options.sitefrom an environment variable if it exists and usinglogin.salesforce.comotherwise.I'm happy to do the work needed for a PR on this one, but I'm looking for a little bit of a suggestion just to make sure it fits with the project and isn't rejected when submitted.