prorm API Reference
    Preparing search index...

    Function verifySecureField

    TypeScript Decorators / Annotations for ts-prorm-orm

    Exports all decorator utilities organized by category:

    Encryption —

    /

    for password hashing Procedures —

    /

    for stored procedures & SQL functions Views —

    for mapping a Model class to a database view Permissions —

    /

    /

    /

    /

    • Verify a plain-text value against the stored hash of a

      Parameters

      • instance: any

        The model instance containing the stored hash

      • field: string

        The field name

      • plainText: string

        The candidate value to check

      Returns Promise<boolean>

      true if the plain-text matches the stored hash

      field.