UNPKG

@wocker/ws

Version:

Docker workspace for web projects

10 lines (9 loc) 434 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.verifyPasswordHash = void 0; const createPasswordHash_1 = require("./createPasswordHash"); const verifyPasswordHash = (password, passwordHash) => { const [, salt = ""] = (passwordHash || "").split(":"); return passwordHash === (0, createPasswordHash_1.createPasswordHash)(password, salt); }; exports.verifyPasswordHash = verifyPasswordHash;