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

TypeError: _crypto2.default.createHash is not a function #5

Open
dm-grinko opened this issue Feb 1, 2018 · 0 comments
Open

TypeError: _crypto2.default.createHash is not a function #5

dm-grinko opened this issue Feb 1, 2018 · 0 comments

Comments

@dm-grinko
Copy link

I am trying to use it on my Angular app.

import * as aws4 from 'hyper-aws4';

test() {
    const creds = this.awsService.getFederateIdentityCredentials();
    const signOption = {
        url: 'http://google.com',
        credential: {
          accessKey: creds.accessKeyId,
          secretKey: creds.secretAccessKey
        }
      }
    const headers = aws4.sign(signOption);
    console.log(headers);
}

but I get this error:

TypeError: _crypto2.default.createHash is not a function

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