From eefb370556b62d0775d6325cca0a3f869346f656 Mon Sep 17 00:00:00 2001 From: "Akshay\" (aider)" Date: Sat, 9 Nov 2024 10:18:19 +0000 Subject: feat: Add JWT token handling for registration and login --- src/routes/index.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/routes/index.js b/src/routes/index.js index 957746e..d517ba2 100644 --- a/src/routes/index.js +++ b/src/routes/index.js @@ -1,7 +1,9 @@ const express = require("express"); const he = require("he"); const { hash, compare } = require("bun"); +const jwt = require("jsonwebtoken"); const router = express.Router(); +const secretKey = "your_secret_key"; // Replace with your actual secret key const geddit = require("../geddit.js"); const { db } = require("../index"); const G = new geddit.Geddit(); -- cgit v1.2.3