[PR #5710] Update next-auth-migration-guide.mdx #14417

Open
opened 2026-04-13 09:27:51 -05:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/better-auth/better-auth/pull/5710

State: open
Merged: No


The migration docs from Next-auth / Auth.js is missing a step: renaming a table. Without this, the following error shows in the console:

2025-11-01T01:41:38.007Z 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:  [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
}

Summary by cubic

Added the missing migration step to rename the verification table from VerificationToken to Verification so Better Auth recognizes the model and avoids the “Model verification does not exist” error.

  • Migration
    • Rename the verification schema/table from VerificationToken to Verification and match ORM casing (verification or Verification).

Written for commit 178e630bc0. Summary will update automatically on new commits.

**Original Pull Request:** https://github.com/better-auth/better-auth/pull/5710 **State:** open **Merged:** No --- The migration docs from Next-auth / Auth.js is missing a step: renaming a table. Without this, the following error shows in the console: ```bash 2025-11-01T01:41:38.007Z 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: [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 } ``` <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Added the missing migration step to rename the verification table from VerificationToken to Verification so Better Auth recognizes the model and avoids the “Model verification does not exist” error. - **Migration** - Rename the verification schema/table from VerificationToken to Verification and match ORM casing (verification or Verification). <sup>Written for commit 178e630bc04442eb8050487d9c4e7714f65e7cf8. Summary will update automatically on new commits.</sup> <!-- End of auto-generated description by cubic. -->
GiteaMirror added the pull-request label 2026-04-13 09:27:51 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#14417