UNPKG

@foal/core

Version:

Full-featured Node.js framework, with no complexity

10 lines (9 loc) 440 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.passwordHashNeedsToBeRefreshed = passwordHashNeedsToBeRefreshed; const hash_password_1 = require("./hash-password"); const utils_1 = require("./utils"); function passwordHashNeedsToBeRefreshed(passwordHash) { const { iterations } = (0, utils_1.decomposePbkdf2PasswordHash)(passwordHash); return iterations < hash_password_1.PASSWORD_ITERATIONS; }