generateToken throws error NodeJS SDK
-
There seems to issue with smartapi-javascript nodejs sdk.. In file smartapi-connect.js, generateToken method,
there is issue with setting public token statement. Current statement,
self.setPublicToken(token_data.data.refreshToken);
This should be,
self.setPublicToken(response.data.refreshToken);
-
Code verified facing similar issue in python sdk
-
@Hemanand said in generateToken throws error NodeJS SDK:
There seems to issue with smartapi-javascript nodejs sdk.. In file smartapi-connect.js, generateToken method,
there is issue with setting public token statement. Current statement,
self.setPublicToken(token_data.data.refreshToken);
This should be,
self.setPublicToken(response.data.refreshToken);
-
Code will be verified and fixed.
But that will not have any issue in your workflow.Regards,
SmartAPI Team