Skip to content

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.

lib/blink.js Outdated
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?

@djboulia
Copy link
Author

Ported the latest auth changes from the Python project to the Node version. I brought it closer to the structure of the Python library by adding a BlinkAuth module to handle the OAuth/2FA/Token/Refresh behavior.

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