Prod issue with authjs(v5)
Unanswered
Boreal Chickadee posted this in #help-forum
Boreal ChickadeeOP
WEIRD THING IN PROD- my friend dont get any kind of error , it works smoothly for him , he tried with chrome , edge , mobile NO ERRORS , he doesnt even face cookie issue
Problem- when i try to login for the first time it gives below error and its pkce coder verifer error ,its by default value is true and even i tried setting up manually inside param
*if i do the login again then flow works fine , no server error *
this app is not verfied yet but we have pushed to production in google console which means any one can use this app but we will show the propmt saying google has not verifed it
Also cookies are getting vanished as soon as i close the tab
im using edge right now
Problem- when i try to login for the first time it gives below error and its pkce coder verifer error ,its by default value is true and even i tried setting up manually inside param
*if i do the login again then flow works fine , no server error *
this app is not verfied yet but we have pushed to production in google console which means any one can use this app but we will show the propmt saying google has not verifed it
Also cookies are getting vanished as soon as i close the tab
im using edge right now
export const { handlers, signIn, signOut, auth } = NextAuth({
providers: [
Google({
clientId: process.env.AUTH_GOOGLE_ID,
clientSecret: process.env.AUTH_GOOGLE_SECRET,
authorization: {
params: {
prompt: "consent",
access_type: "offline",
response_type: "code",
scope: [
"openid",
"email",
"profile",
"https://www.googleapis.com/auth/userinfo.profile",
"https://www.googleapis.com/auth/userinfo.email",
"https://www.googleapis.com/auth/gmail.modify",
].join(" "),
},
},
}),
],