Skip to content

Documentation on adding better-auth tables to custom database #93

@Ragura

Description

@Ragura

I was following the steps to work with a custom database and better-auth.
The docs say to run this: npx better-auth generate.
But the actual CLI package executable is npx @better-auth/cli generate.

Furthermore, it's asking for a config file when running it:
No configuration file found. Add a auth.ts file to your project or pass the path to the configuration file using the --config flag.

I assume this is what the server/app auth.config.ts files are supposed to wrap under the hood?

And finally, the steps in the docs have the following Drizzle example:

import { drizzleAdapter } from 'better-auth/adapters/drizzle'

This appears to require better-auth to be installed separately as a package to resolve the import. The same is likely true for the other adapter examples too. But could installing better-auth separately cause a version mismatch between what this module expects and the installed better-auth version?

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