Skip to content
This repository was archived by the owner on Mar 2, 2026. It is now read-only.
This repository was archived by the owner on Mar 2, 2026. It is now read-only.

Critical: Syntax Error in auth.ts Configuration #3

@AliiiBenn

Description

@AliiiBenn

Priority

🔴 Critical - Blocking Issue

Location

src/lib/auth.ts:14

Problem Description

There is a syntax error in the Better Auth configuration where the verification model name has a trailing space inside the string literal:

verification: { modelName: 'better_auth_verification '}  // Extra space at end

Impact

  • The string literal has an unclosed quote appearance (though technically valid)
  • This causes the verification table name to have a trailing space
  • Database queries may fail due to the mismatched table name
  • Authentication verification flows will be broken

Steps to Reproduce

  1. Start the application
  2. Attempt to trigger any verification flow (email verification, password reset, etc.)
  3. Observe database errors related to table not found

Expected Behavior

The model name should be a clean string without trailing spaces:

verification: { modelName: 'better_auth_verification' }

Additional Context

  • This was introduced during the Better Auth setup
  • May not have been caught if verification flows haven't been tested yet
  • Related to better-auth migrations in better-auth_migrations/

Checklist

  • Fix the syntax error by removing trailing space
  • Test verification flows (email, password reset)
  • Run database migrations to ensure clean state
  • Add linting rule to catch trailing spaces in strings

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions