Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

  • checkPassword(input: string, actual: string): Promise<boolean>
  • Compares a plaintext password with a hashed password.

    Parameters

    • input: string

      Inputted password

    • actual: string

      Hash of actual password

    Returns Promise<boolean>

    Whether the two match

  • hashPassword(password: string): Promise<string>
  • Converts a plaintext password into a bcrypt hash.

    Parameters

    • password: string

      Password to hash

    Returns Promise<string>

    Hashed password

Generated using TypeDoc