Skip to content

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

@anis-18

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions