-
Notifications
You must be signed in to change notification settings - Fork 33
fixes for latest blink API #60
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
base: master
Are you sure you want to change the base?
Conversation
if (err || _statusCodeIsError(response)) { | ||
return reject(new BlinkAuthenticationException(`Authentication problem: ${body.message}`)); | ||
} | ||
if (!body.region) { | ||
if (!valid) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this should be
if (!body.valid) { }
because valid is not defined before.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be still a check for body.region
I've made updates for the v5 login which changed the login URL as well as the response data from the blink server. 9f8f99b |
Any status on merging this PR? |
The API changed quite a bit from the prior version. Had to re-arrange a bit to preserve the original node-blink-security functionality.