vippsas / deno-sdk

SDK for integrating Vipps MobilePay APIs. Built with Deno
https://developer.vippsmobilepay.com/
MIT License
9 stars 0 forks source link

ReferenceError: crypto is not defined #49

Closed viktorfa closed 2 months ago

viktorfa commented 8 months ago

I got ReferenceError: crypto is not defined when using the client on Node 18 in AWS Lambda.

It can be fixed in your code with the line global.crypto = require("node:crypto");

flinkgutt commented 7 months ago

Thank you for reporting this! :)

tomas-zijdemans-vipps commented 2 months ago

@viktorfa This should now be fixed. Please Reopen the issue if you still have an issue :)