Updated useConfig. Added SSO page.

This commit is contained in:
Mike Cao committed 2022-10-31 11:02:37 -07:00
1 parent f10c8ba9e2
commit c58e037a7e
8 files changed
+69 -32

No files matched your search

+2 -2
View File
@@ -9,11 +9,11 @@ export function secret() {
export function salt() {
const ROTATING_SALT = hash(startOfMonth(new Date()).toUTCString());
return hash([secret(), ROTATING_SALT]);
return hash(secret(), ROTATING_SALT);
}
export function uuid(...args) {
if (!args.length) return v4();
return v5(hash([...args, salt()]), v5.DNS);
return v5(hash(...args, salt()), v5.DNS);
}