ccoenraets / forcejs

Micro library to use the Salesforce REST APIs in JavaScript Apps
175 stars 61 forks source link

Error INVALID_SESSION_ID after accesstoken is expired #23

Open mao32 opened 7 years ago

mao32 commented 7 years ago

I found out something wrong during refresh token cycle. If after the login the access token expires the library is not able to use refresh taken in order to get the new accesstoken. I'm sure to pass refreshtoken on DataService.createinstance. Looking in the javascript dist, seems something wrong about variables name in onreadystatechange inside request function.

ptcc commented 7 years ago

👍