I'm trying to get a nodeJS RestAPI service in place that should get and post data to and from a Salesforce org.
However I can find a way to get my access_token from Salesforce. I've tried with JsForce, nForce (but since I'm using a Dev Org it can't work),axios but no solutions in sight.
When I tried via Postman and with these info :
grant_type:password
client_id:XXXXXXX
client_secret:XXXXX
username:XXXXX
password:XXXXX(+Security token)
It works like a charm but as soon as I'm using these via Javascript I get:
{ error: 'invalid_grant',
error_description: 'authentication failure' } } }
I can however use my access_token (the one I got via Postman) to make some get request...