pozil / pub-sub-api-node-client

A node client for the Salesforce Pub/Sub API
Creative Commons Zero v1.0 Universal
70 stars 37 forks source link

SALESFORCE_TOKEN should not be required #19

Closed eltoroit closed 12 months ago

eltoroit commented 12 months ago

I am using a SALESFORCE_AUTH_TYPE=username-password to connect to a scratch org where my user's profile has the IP range configured from 0.0.0.0 to 255.255.255.255 so that I am required to provide the SALESFORCE_TOKEN. But this library errors out if I leave it blank

I had to break my password "abc123" (not my real password) into:

SALESFORCE_PASSWORD=abc
SALESFORCE_TOKEN=123
pozil commented 12 months ago

Good catch. I just released a fix to make the token optional.