Skip to content

Auth seeds may fail when the owner configures Better Auth validateUserInfo (untested) #1058

Closed

Description

@jimhoyd

From #1052 S5 (PR #1057). Hermetic auth seeds (tests/seed.json auth.users) now go through Better Auth's internalAdapter.createUser and linkAccount, so they work on any adapter. If an owner configures Better Auth's validateUserInfo, seeding will likely fail, because that check expects a request context that seeding does not provide. Not tested and not documented (reported by the implementing agent; unverified).

Expected: either seeding supplies a synthetic context that validators can accept, or the seed step refuses with a clear message naming validateUserInfo. Document the behavior in packages/auth/README.md ("Your own database" and seeds), and add a test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions