Prisma, BetterAuth: Model Verification does not exist.

import { betterAuth } from "better-auth"
import { prismaAdapter } from "better-auth/adapters/prisma"
import { reactStartCookies } from "better-auth/react-start"

import { prisma } from "@/db"
import { env } from "@/env"

export const auth = betterAuth({
    database: prismaAdapter(prisma, {
        provider: "mysql",
        debugLogs: true,
    }),
    socialProviders: {
        google: {
            clientId: env.GOOGLE_CLIENT_ID,
            clientSecret: env.GOOGLE_CLIENT_SECRET,
        },
    },
    plugins: [reactStartCookies()],
})


error:
2025-10-18T12:16:01.593Z ERROR [Better Auth]: Model verification does not exist in the database. If you haven't generated the Prisma client, you need to run 'npx prisma generate'

# SERVER_ERROR:  [BetterAuthError: Model verification does not exist in the database. If you haven't generated the Prisma client, you need to run 'npx prisma generate'] {
  cause: undefined
}


while the db is up to date with the new schema:
Screenshot_2025-10-18_at_5.22.09_PM.png
Solution
alright. I think @prisma/client wasnt updated for some reason, delete it and re-generated again. now fixed. dont know why npx prisma generate didnt update it as well
Was this page helpful?