Skip to content

VexAuthAdapter

Defined in: packages/core/src/auth/types.ts:66

Auth adapter returned by an auth provider package (e.g. @vexcms/better-auth).

The adapter exposes auth collections as standard Vex CollectionConfig[] so that schema generation, admin navigation, and CRUD views treat them identically to user-defined collections.

better-auth/src!betterAuthAdapter — the Better Auth implementation

readonly collections: AuthCollectionConfig<string, string, ComponentHKT>[]

Defined in: packages/core/src/auth/types.ts:78

Auth collections to register alongside user-defined collections.

These are merged into VexConfig.collections automatically by defineConfig(). Each collection uses standard Vex field builders (text(), relationship(), etc.) and may carry admin.readOnly defaults on system fields.


readonly name: string

Defined in: packages/core/src/auth/types.ts:68

Provider identifier for debugging and telemetry.


readonly userCollection: string

Defined in: packages/core/src/auth/types.ts:86

The slug of the collection that stores user documents.

Used by the admin panel to resolve user references and by auth-aware components to look up the current user collection.