Updated hash method.

This commit is contained in:
Mike Cao 2022-04-12 20:59:17 -07:00
parent ea9da45679
commit 4c01f2fa49

View File

@ -14,11 +14,11 @@ export function hash(...args) {
}
export function secret() {
return hash(process.env.HASH_SALT);
return hash(process.env.DATABASE_URL, process.env.HASH_SALT);
}
export function salt() {
return v5([secret(), ROTATING_SALT].join(''), v5.DNS);
return v5(hash(secret(), ROTATING_SALT), v5.DNS);
}
export function uuid(...args) {