Le
TTCTheo's Typesafe Cult
•Created by Le on 4/23/2025 in #questions
I was trying to introduce credentials provider alongside my already existing emailprovider
I fixed it
had to delete my users unfortunately :(
this was the solution
so I do think it was a db issue I caused
at first I tried deleting just the sessions, the verification tokens, and thought maybe it would work, but it was only after I deleted the users did it work
5 replies
TTCTheo's Typesafe Cult
•Created by Le on 4/23/2025 in #questions
I was trying to introduce credentials provider alongside my already existing emailprovider
I get an error asking me for a csrf token, eventhough I am now using the default pre-built nextauth sign in page
5 replies
TTCTheo's Typesafe Cult
•Created by Le on 4/23/2025 in #questions
I was trying to introduce credentials provider alongside my already existing emailprovider
Something else which I suspect might have caused an issue, I removed the notnull condition from my drizzle schema, tried adding a password field
then I changed back
Could this have caused an issue?
5 replies
TTCTheo's Typesafe Cult
•Created by Le on 7/24/2024 in #questions
NextAuth problem in production on Vercel
I changed my smtp server to just gmail now, and the email provider works
I will mark your first answer as a solution because it's the closest thing to the solution. Thanks for the assistance
23 replies
TTCTheo's Typesafe Cult
•Created by Le on 7/24/2024 in #questions
NextAuth problem in production on Vercel
Alright the google provider works fine now, I recreated the project, I created another database, and created another google project. I carefully added each environment variable except nextauth_url, then I cleared my site data, and it worked.
Before this I did try updating prisma, it didn't seem to be the issue. I'm afraid the issue might have been with the env after all, as I initially just pasted the .env into vercel, but this time I copy-pasted each key and each value separately.
The current issue is just the email provider, I get a 504 "This Serverless Function took too long"
23 replies
TTCTheo's Typesafe Cult
•Created by Le on 7/24/2024 in #questions
NextAuth problem in production on Vercel
no worries, much appreciated
23 replies
TTCTheo's Typesafe Cult
•Created by Le on 7/24/2024 in #questions
NextAuth problem in production on Vercel
⨯ PrismaClientUnknownRequestError:
Invalid prisma.user.findUnique() invocation:
Error occurred during query execution:
ConnectorError(ConnectorError { user_facing_error: None, kind: QueryError(PostgresError { code: "42P05", message: "prepared statement "s3" already exists", severity: "ERROR", detail: None, column: None, hint: None }), transient: false })
at _n.handleRequestError (/var/task/node_modules/.pnpm/@[email protected][email protected]/node_modules/@prisma/client/runtime/library.js:121:7939)
at _n.handleAndLogRequestError (/var/task/node_modules/.pnpm/@[email protected][email protected]/node_modules/@prisma/client/runtime/library.js:121:7057)
at _n.request (/var/task/node_modules/.pnpm/@[email protected][email protected]/node_modules/@prisma/client/runtime/library.js:121:6741)
at async l (/var/task/node_modules/.pnpm/@[email protected][email protected]/node_modules/@prisma/client/runtime/library.js:130:9355) {
name: 'GetUserByEmailError',
code: undefined
}
23 replies
TTCTheo's Typesafe Cult
•Created by Le on 7/24/2024 in #questions
NextAuth problem in production on Vercel
sure thing, I will share both. Give me a sec
23 replies
TTCTheo's Typesafe Cult
•Created by Le on 7/24/2024 in #questions
NextAuth problem in production on Vercel
it gives me a 504 error
23 replies
TTCTheo's Typesafe Cult
•Created by Le on 7/24/2024 in #questions
NextAuth problem in production on Vercel
but the email provider still doesn't work
23 replies
TTCTheo's Typesafe Cult
•Created by Le on 7/24/2024 in #questions
NextAuth problem in production on Vercel
in the drizzle project, the production version google provider works
23 replies
TTCTheo's Typesafe Cult
•Created by Le on 7/24/2024 in #questions
NextAuth problem in production on Vercel
yeah
23 replies
TTCTheo's Typesafe Cult
•Created by Le on 7/24/2024 in #questions
NextAuth problem in production on Vercel
yo thanks for the response
I had the google provider secrets in my env, so I think it was something else.
I looked at my logs on vercel and saw some prisma erros but I didn't really know how to resolve them. I suspected it had something to do with the direct_url database_url thing, so I scaffolded another project with drizzle to test it out
23 replies