more granular detection of changes which forces less disruptive realoding. Refactoring of audit functions

This commit is contained in:
azivner
2017-11-05 10:41:54 -05:00
parent 8c996a75ef
commit 0481b1b79c
9 changed files with 214 additions and 194 deletions

View File

@@ -40,6 +40,10 @@ function hmac(secret, value) {
return hmac.digest('base64');
}
function browserId(req) {
return req.get('x-browser-id');
}
module.exports = {
randomSecureToken,
randomString,
@@ -47,5 +51,6 @@ module.exports = {
newNoteId,
toBase64,
fromBase64,
hmac
hmac,
browserId
};