NEXT AUTH error
Unanswered
House Wren posted this in #help-forum
House WrenOP
I get this error on my website when I try tp sign in just to I know the database is working fine because the homepage is fetching data from this database , and even the website logged me in automatically when I opened but when I signed out and tried to sign in again this happened, I'm only using google auth with NEXT AUTH why I'm getting this, thank you in advance
https://next-auth.js.org/errors#oauth_callback_error PKCE code_verifier cookie was missing. {
error: TypeError: PKCE code_verifier cookie was missing.
at Object.use (/var/task/node_modules/next-auth/core/lib/oauth/checks.js:67:30)
at oAuthCallback (/var/task/node_modules/next-auth/core/lib/oauth/callback.js:90:24)
at async Object.callback (/var/task/node_modules/next-auth/core/routes/callback.js:52:11)
at async AuthHandler (/var/task/node_modules/next-auth/core/index.js:208:28)
at async NextAuthApiHandler (/var/task/node_modules/next-auth/next/index.js:22:19)
at async NextAuth._args$ (/var/task/node_modules/next-auth/next/index.js:107:14) {
name: 'OAuthCallbackError',
code: undefined
},
providerId: 'google',
message: 'PKCE code_verifier cookie was missing.'
}
Edit: this is happening only on production, development built works fine which is more stranger this was working fine few days in the production build
https://next-auth.js.org/errors#oauth_callback_error PKCE code_verifier cookie was missing. {
error: TypeError: PKCE code_verifier cookie was missing.
at Object.use (/var/task/node_modules/next-auth/core/lib/oauth/checks.js:67:30)
at oAuthCallback (/var/task/node_modules/next-auth/core/lib/oauth/callback.js:90:24)
at async Object.callback (/var/task/node_modules/next-auth/core/routes/callback.js:52:11)
at async AuthHandler (/var/task/node_modules/next-auth/core/index.js:208:28)
at async NextAuthApiHandler (/var/task/node_modules/next-auth/next/index.js:22:19)
at async NextAuth._args$ (/var/task/node_modules/next-auth/next/index.js:107:14) {
name: 'OAuthCallbackError',
code: undefined
},
providerId: 'google',
message: 'PKCE code_verifier cookie was missing.'
}
Edit: this is happening only on production, development built works fine which is more stranger this was working fine few days in the production build