"Error: [unenv] crypto.createCipheriv is not implemented yet" when using Auth.js

Using GitHub OAuth with Auth.js and SvelteKit, I get this error when an user clicks "Sign in on GitHub":
[auth][error] Error: [unenv] crypto.createCipheriv is not implemented yet!
[auth][error] Error: [unenv] crypto.createCipheriv is not implemented yet!
Is there any way around this? (except moving to another platform :/)
1 Reply
James
James6d ago
Not currently. You can follow https://github.com/cloudflare/workerd/issues/3277 for updates - it sounds like we might see more of node:crypto in Q1
GitHub
[Feature] Implement crypto.createCipheriv · Issue #3277 · cloudflar...
crypto.createCipheriv is required by Next Auth. See opennextjs/opennextjs-cloudflare#206 Can we prioritize the implementation of the API? @jasnell The crypto APIs are used by Next from crypto-utils.ts

Did you find this page helpful?