@accelerated-software-development/caddy-api-client - v0.2.2
    Preparing search index...

    Function verifyPassword

    • Verify a password against a bcrypt hash Useful for testing authentication configurations

      Parameters

      • password: string

        Plain text password

      • hash: string

        Bcrypt hash to verify against

      Returns Promise<boolean>

      Promise resolving to true if password matches

      const isValid = await verifyPassword("my-password", hash);