Next-auth V5 - Error: self-signed certificate in certificate chain #12239
Unanswered
VovaGayduk42
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi
I have some requests in my auth.config - for refresh token and user logout.
This works, but error messages appear in the server console.
For example:
I need to set httpsAgent with the parameter
rejectUnauthorized: false
However, NextJs prohibit using httpsAgent in midleware
import https from "https";
https://nextjs.org/docs/messages/node-module-in-edge-runtime
I might be able to resolve problem this approach
But I think this is a quite complex solution
https://authjs.dev/getting-started/migrating-to-v5#edge-compatibility
Beta Was this translation helpful? Give feedback.
All reactions