import GeotabAPI = require("mg-api-js");
const api = new GeotabAPI(authentication, options);
// this call does not throw an error if the sessionId used is expired, or incorrect
api.authenticate()
When authenticating using the geotab client, we are running into errors during the execution of individual calls, rather than during the original authentication process.
Having it fail when calling authenticate would allows to fail first and early if the sessionId is incorrect.
When authenticating using the geotab client, we are running into errors during the execution of individual calls, rather than during the original authentication process.
Having it fail when calling
authenticatewould allows to fail first and early if thesessionIdis incorrect.