it possible to connect to sales force with a community license user using jsforce?
This is what I have tried
let conn = new jsforce.Connection({
loginUrl : 'https://login.salesforce.com'
});
conn.login('user@domain.com', 'mypassword', function(err, userInfo) {
if (err) {
console.error(err);
}
});
This works for me when I use a full sales force user but when I use a community user I get the error: Error: INVALID_LOGIN: Invalid username, password, security token; or user locked out.
Note: I also can't login to https://login.salesforce.com with a community user so I'm wondering if there is a different loginUrl I should be using. I tried something like https://myDomain.na30.force.com/myPath but I get the same error.
I saw this post https://salesforce.stackexchange.com/a/111782 that says
community usernames are not globally unique, you need to use SOAP login with LoginScopeHeader
But I'm not sure how to add that with jsForce.