summary refs log tree commit diff
path: root/accounts.ts
diff options
context:
space:
mode:
Diffstat (limited to 'accounts.ts')
-rw-r--r--accounts.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/accounts.ts b/accounts.ts
index 7d6cdfa..1dc96ac 100644
--- a/accounts.ts
+++ b/accounts.ts
@@ -1,7 +1,9 @@
 import { createHash } from "node:crypto";
-import cuid from "cuid";
+import cuid2 from "@paralleldrive/cuid2";
 import fs from "node:fs";
 
+const cuid = cuid2.init()
+
 if (!fs.existsSync("db")) fs.mkdirSync("db");
 if (!fs.existsSync("db/users.json")) fs.writeFileSync("db/users.json", "{}");