Skip to content

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

Description

@anis-18

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions