@mercury-labs/auth
Version:
Mercury framework auth library. It supports local auth, jwt with both bearer token and cookie, basic auth.
12 lines • 535 B
JavaScript
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.hideRedactedFields = void 0;
const fp_1 = __importDefault(require("lodash/fp"));
function hideRedactedFields(redactedFields) {
return (user) => fp_1.default.omit(redactedFields || ['password'], user);
}
exports.hideRedactedFields = hideRedactedFields;
//# sourceMappingURL=hide-redacted-fields.helper.js.map
;