"InvalidCheck: PKCE code_verifier cookie was missing" error only in production #10962
Unanswered
SamGenieDev
asked this question in
Help
Replies: 1 comment 2 replies
-
Just to confirm, does the |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Since using Auth.js in production, some users have been experiencing this error preventing them from signing in with google.
I'm using Sveltekit with node-adapter hosted behind an nginx reverse proxy. I haven't been able to reliably reproduce this issue, but I know that lots of users randomly experience it and it usually goes away after a few attempts logging in.
Auth.js config
I have tried adding this to that config but it didn't change anything:
Tried adding
checks: ["none"]
to the Google provider config. Also triedchecks: ["state"]
. Either gives the error:Environment variables:
nginx configuration:
I am wondering if it's caused by the front-facing server being HTTPS and the internal server being HTTP. Maybe this causes problems with secure cookies? I'm not sure but it's working for most users so this is unlikely.
Does anyone have any ideas? Greatly appreciate any help with this.
Beta Was this translation helpful? Give feedback.
All reactions