Search code examples
salesforcesalesforce-lightning

Salesforce Lightning - Login Failure In Staging


I'm trying to login into my staging Salesforce lightning, by I get the following result:

INVALID_LOGIN: Invalid username, password, security token; or user locked out.

I use the 'jsForce' library version 2, with the right serverUrl, username and password+token combination.

Note that when I do exactly the same for my production Salesforce environment - I succeed.

Any suggestion to why there's a difference between staging and production - would be helpful.


Solution

  • Found a Solution: when logging to Salesforce using the jsForce libray, only the 'loginUrl' parameter works as expected (as opposed to 'serverUrl' for production).