NextAuth problem in production on Vercel

Hey, I am having trouble using NextAuth in production, despite using it just fine in my development environment. I am using Prisma as well.
I tried removing the NEXTAUTH_URL from my environment variables in production based on this https://next-auth.js.org/deployment#vercel, as well as removing the authOptions export from '~/server/auth' based on this https://github.com/vercel/next.js/discussions/50511
Unfortunatley neither of these solutions seemed to work, nor did the solutions that I have looked through here.
I am using the Email provider, and the Google provider btw
GitHub
Summary I am trying to deploy a NextJS application to vercel. This is a test sign in model using AuthJS. When I run the program using npm run devit works fine and I am able to log in to my discord ...
Deploying NextAuth.js only requires a few steps. It can be run anywhere a Next.js application can. Therefore, in a default configuration using only JWT session strategy, i.e. without a database, you will only need these few things in addition to your application:
Solution
i think you just have to add the google provider secrets in the env.
Was this page helpful?