Open arjun-iihglobal opened 3 months ago
Would you like to double check whether your @logto/express SDK is updated? Seems I can not find import crypto from 'crypto';
in our latest @logto/node/edge/generators.ts
file.
Yes I am using latest @logto/express npm package
and you can see there is no import of crypto
The crypto API are available on node 20, I'm afraid.
Yes, It is working on node 20. I have tested this.
Describe the bug
I am getting a ReferenceError: crypto is not defined. The file reference is @logto/node/lib/edge/generators.
And I am using Node js v18.20.3
Expected behavior
Just import the crypto in @logto/node/lib/edge/generators
How to reproduce?
Just install the @logto/express with node 18 version and use import { handleAuthRoutes } from "@logto/express";
Context
Screenshots