aboutsummaryrefslogtreecommitdiff
path: root/src/routes/index.js
diff options
context:
space:
mode:
authorAkshay <[email protected]>2024-11-19 22:43:12 +0000
committerAkshay <[email protected]>2024-11-19 22:43:12 +0000
commit3551ff7a202ad60362888888c42f88b37e32fc59 (patch)
treec0f2b16f427a92178683014e63d043f3b3c00f5f /src/routes/index.js
parent0003c28d8b042c080776b0f7ad046bca3ba6ae39 (diff)
testing in prod
Diffstat (limited to 'src/routes/index.js')
-rw-r--r--src/routes/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/routes/index.js b/src/routes/index.js
index 4bc45cd..9a415be 100644
--- a/src/routes/index.js
+++ b/src/routes/index.js
@@ -126,7 +126,7 @@ router.get("/dashboard", authenticateToken, async (req, res) => {
126 126
127router.get("/create-invite", authenticateAdmin, async (req, res) => { 127router.get("/create-invite", authenticateAdmin, async (req, res) => {
128 function generateInviteToken() { 128 function generateInviteToken() {
129 const hasher = new Bun.CryptoHasher("sha256", "super-secret-invite-key"); 129 const hasher = new Bun.CryptoHasher("sha256");
130 return hasher.update(Math.random().toString()).digest("hex").slice(0, 10); 130 return hasher.update(Math.random().toString()).digest("hex").slice(0, 10);
131 } 131 }
132 132