AuthFieldMeta
Defined in: packages/core/src/auth/types.ts:16
Metadata attached to auth fields to control merge behavior during auth collection merging.
When locked: true, the field definition from the auth adapter is
preserved and cannot be overridden by a user-defined collection.
Unlocked fields can be extended or replaced by the user.
- mergeAuthCollections for the merge logic that respects this flag
- better-auth/src!betterAuthAdapter for the adapter that sets
lockedon system fields
Properties
Section titled “Properties”locked
Section titled “locked”locked:
boolean
Defined in: packages/core/src/auth/types.ts:18
When true, this field cannot be overridden by user-defined collections.