prorm API Reference
    Preparing search index...

    Function createArgon2Adapter

    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 —

    /

    /

    /

    /

    • Create an argon2 adapter.

      Requires argon2 to be installed: npm install argon2

      Usage: import argon2 from 'argon2'; setEncryptionAdapter(createArgon2Adapter(argon2));

      Parameters

      • argon2Lib: {
            hash(plain: string): Promise<string>;
            verify(hash: string, plain: string): Promise<boolean>;
        }

      Returns EncryptionAdapter