Skip to content

encrypted

const encrypted: Encrypted

Defined in: packages/schema/src/encrypted-value.ts:13

What record rules, validators and write hooks get in place of an .encrypted() field’s stored value when it is set; an empty one is null. It is the same for every value and carries nothing of it: test it with == null or === encrypted, while comparing it loosely or reading it as text throws. See Encrypted fields.