Errors

NUXT_AUTH_MISSING_CONFIG: Missing auth configuration

Create the server or client auth config file that Nuxt Better Auth could not find.
Example error
[NUXT_AUTH_MISSING_CONFIG] Missing server/auth.config.ts

Why this happens

The module could not find the configured server or client auth file. This can happen after renaming a file, changing auth.serverConfig or auth.clientConfig, or moving configuration into a Nuxt layer. In clientOnly mode, only the client config is required.

How to fix it

Create server/auth.config.ts with export default defineServerAuth(...).

For the server configuration in this example, create:

server/auth.config.ts
import { defineServerAuth } from '@nuxtjs/better-auth/config'

export default defineServerAuth({})

If the error names a client file, use defineClientAuth({}) from the same package export instead. Check any custom auth.serverConfig and auth.clientConfig paths against the file's actual location.

Verify the fix

Run pnpm exec nuxt prepare. The named config should resolve without NUXT_AUTH_MISSING_CONFIG.

See Install and configure the module or return to the error reference.