Updated useConfig. Added SSO page.

This commit is contained in:
Mike Cao 2022-10-31 11:02:37 -07:00
parent f10c8ba9e2
commit c58e037a7e
8 changed files with 69 additions and 32 deletions

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);
}