Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Geotab API does not throw error when calling Authenticate with incorrect sessionId #24

Open
Naragod opened this issue Nov 12, 2021 · 0 comments

Comments

@Naragod
Copy link

Naragod commented Nov 12, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant