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

Cannot read property 'call' of undefined when calling createHmac function from crypto #127

Open
anis-18 opened this issue Jan 13, 2023 · 0 comments

Comments

@anis-18
Copy link

anis-18 commented Jan 13, 2023

I'm running the following code:

    const HMACKey = Buffer.from(hmacKeyBase64, 'base64');
    const HMAC = createHmac('sha256', HMACKey);
    HMAC.update(value);
    return HMAC.digest('hex');

and i'm getting this error

Cannot read property 'call' of undefined 

please take a look at the image for further information about the error

Screenshot_2023-01-13-10-31-56-662_com touristpass2_0

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

No branches or pull requests

1 participant