Skip to content

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

djboulia
Copy link

@djboulia djboulia commented Dec 4, 2020

The API changed quite a bit from the prior version. Had to re-arrange a bit to preserve the original node-blink-security functionality.

if (err || _statusCodeIsError(response)) {
return reject(new BlinkAuthenticationException(`Authentication problem: ${body.message}`));
}
if (!body.region) {
if (!valid) {
Copy link

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.

Copy link
Owner

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

@djboulia
Copy link
Author

I've made updates for the v5 login which changed the login URL as well as the response data from the blink server. 9f8f99b

@johnwalicki
Copy link

Any status on merging this PR?

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

Successfully merging this pull request may close these issues.

4 participants