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

Update hmac.js to include a better error for undefined key #494

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

guffelman
Copy link

When key is undefined, the user of the package will get the error

Cannot read property 'sigBytes' of undefined

This fix prevents that and returns an error that says that the key is undefined.

When key is undefined, the user of the package will get the error 

`Cannot read property 'sigBytes' of undefined`

This fix prevents that and returns an error that says that the key is undefined.
@guffelman
Copy link
Author

This should resolve #85 .

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.

1 participant