-
Notifications
You must be signed in to change notification settings - Fork 22
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
try all keys for NDI #84
Conversation
src/corppass/corppass-helper-ndi.ts
Outdated
error = err; | ||
} | ||
} | ||
throw error; |
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.
Is it safe to simply throw error;
?
Or should we be doing a check on whether there's an error before throwing?
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.
ideally if it reaches there it means all of the verification failed and there should be at least one error; of course to be extra safe it can be
if (error) {
throw error;
} else {
throw new Error('all keys failed');
}
src/corppass/corppass-helper-ndi.ts
Outdated
error = err; | ||
} | ||
} | ||
throw error; |
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.
Is it safe to simply throw error;
?
Or should we be doing a check on whether there's an error before throwing?
src/singpass/singpass-helper-ndi.ts
Outdated
error = err; | ||
} | ||
} | ||
throw error; |
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.
Is it safe to simply throw error;
?
Or should we be doing a check on whether there's an error before throwing?
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.
Please also help to bump the package version to 8.3.9
(also the package lock)
NDI is doing a key rotation and randomises the order of old and new keys, so we have to try them all