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.
"exactly the same" to prod is probably bad idea, https://test.salesforce.com vs https://login.salesforce.com ;) And even if you have same password - the token could be different, password could have expired.
Do you see anything in the user's login history in setup? It's hard to guess these things. Do you get same result if you try SOAP API login or OAuth2? Or even plain old SF Data Loader?
Found a Solution: when logging to Salesforce using the jsForce libray, only the 'loginUrl' parameter works as expected (as opposed to 'serverUrl' for production).
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.