-
Notifications
You must be signed in to change notification settings - Fork 22
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
[BUG] NextAuth errors with [unenv] crypto.createCipheriv is not implemented yet! #206
Comments
Can you try to install the following version of the adapter: https://pkg.pr.new/@opennextjs/cloudflare@212 It comes from PR #212 and should solve the issue |
Thank you very much. However, I got another error.
|
It's ok to re-use this issue - I have changed the title to reflect what's need to be done here.
|
I see. |
I've run into this same issue while trying to use opennextjs-cloudflare with next-auth. I notice that the If I edit |
@Macil do you have a repo with a repro? Can I also ask the version of Next you use? |
Here's a reproduction repo: https://github.com/Macil/opennext-cf-next-auth-bug-repro This is using Next 14.2.23, set up using the |
Tip
@arnavgupta00 found a workaround, see cloudflare/workerd#3277 (comment)
cloudflare/workerd#3277 (comment)
Describe the bug
When next-auth is used and next-auth related functions are executed, the following error occurs.
Steps to reproduce
(Environment variables can be reproduced as in the sample.)
4. run preview
If I try deleting middleware.ts, I can access http://localhost:8787/ , but when I press the Sign In button, I get the same error.
Expected behavior
next-auth works
@opennextjs/cloudflare version
0.3.2
Wrangler version
3.99.0
next info output
Operating System: Platform: darwin Arch: arm64 Version: Darwin Kernel Version 24.1.0: Thu Nov 14 18:15:21 PST 2024; root:xnu-11215.41.3~13/RELEASE_ARM64_T6041 Available memory (MB): 24576 Available CPU cores: 12 Binaries: Node: 23.5.0 npm: 10.9.2 Yarn: N/A pnpm: 9.14.2 Relevant Packages: next: 15.1.3 // Latest available version is detected (15.1.3). eslint-config-next: 15.1.3 react: 19.0.0 react-dom: 19.0.0 typescript: 5.7.2 Next.js Config: output: N/A
Additional context
No response
The text was updated successfully, but these errors were encountered: