You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{"level":"error","message":"Login failed secretOrPrivateKey must have a value","stack":"Error: secretOrPrivateKey must have a value\n at module.exports [as sign] (C:\\Users\\DELL\\Desktop\\VisualIndex Backend\\app\\node_modules\\jsonwebtoken\\sign.js:111:20)\n at generateTokens (file:///C:/Users/DELL/Desktop/VisualIndex%20Backend/app/controllers/authController.js:27:27)\n at login (file:///C:/Users/DELL/Desktop/VisualIndex%20Backend/app/controllers/authController.js:84:43)"}
2
+
{"level":"info","message":"User logout attempt"}
3
+
{"level":"error","message":"Login failed secretOrPrivateKey must have a value","stack":"Error: secretOrPrivateKey must have a value\n at module.exports [as sign] (C:\\Users\\DELL\\Desktop\\VisualIndex Backend\\app\\node_modules\\jsonwebtoken\\sign.js:111:20)\n at generateTokens (file:///C:/Users/DELL/Desktop/VisualIndex%20Backend/app/controllers/authController.js:27:27)\n at login (file:///C:/Users/DELL/Desktop/VisualIndex%20Backend/app/controllers/authController.js:84:43)"}
4
+
{"level":"error","message":"Login failed secretOrPrivateKey must have a value","stack":"Error: secretOrPrivateKey must have a value\n at module.exports [as sign] (C:\\Users\\DELL\\Desktop\\VisualIndex Backend\\app\\node_modules\\jsonwebtoken\\sign.js:111:20)\n at generateTokens (file:///C:/Users/DELL/Desktop/VisualIndex%20Backend/app/controllers/authController.js:27:27)\n at login (file:///C:/Users/DELL/Desktop/VisualIndex%20Backend/app/controllers/authController.js:84:43)"}
5
+
{"level":"error","message":"Login failed secretOrPrivateKey must have a value","stack":"Error: secretOrPrivateKey must have a value\n at module.exports [as sign] (C:\\Users\\DELL\\Desktop\\VisualIndex Backend\\app\\node_modules\\jsonwebtoken\\sign.js:111:20)\n at generateTokens (file:///C:/Users/DELL/Desktop/VisualIndex%20Backend/app/controllers/authController.js:27:27)\n at login (file:///C:/Users/DELL/Desktop/VisualIndex%20Backend/app/controllers/authController.js:84:43)"}
6
+
{"level":"error","message":"Login failed secretOrPrivateKey must have a value","stack":"Error: secretOrPrivateKey must have a value\n at module.exports [as sign] (C:\\Users\\DELL\\Desktop\\VisualIndex Backend\\app\\node_modules\\jsonwebtoken\\sign.js:111:20)\n at generateTokens (file:///C:/Users/DELL/Desktop/VisualIndex%20Backend/app/controllers/authController.js:27:27)\n at login (file:///C:/Users/DELL/Desktop/VisualIndex%20Backend/app/controllers/authController.js:84:43)"}
7
+
{"level":"error","message":"Login failed accessToken is not defined","stack":"ReferenceError: accessToken is not defined\n at generateTokens (file:///C:/Users/DELL/Desktop/VisualIndex%20Backend/app/controllers/authController.js:29:12)\n at login (file:///C:/Users/DELL/Desktop/VisualIndex%20Backend/app/controllers/authController.js:86:43)"}
8
+
{"level":"error","message":"Login failed accessToken is not defined","stack":"ReferenceError: accessToken is not defined\n at generateTokens (file:///C:/Users/DELL/Desktop/VisualIndex%20Backend/app/controllers/authController.js:32:12)\n at login (file:///C:/Users/DELL/Desktop/VisualIndex%20Backend/app/controllers/authController.js:89:43)"}
9
+
{"level":"info","message":"User registered: viewer@test.com by 689530bbc1d8d5095e3b47f5"}
10
+
{"level":"info","message":"User logout attempt"}
11
+
{"level":"info","message":"✅ User login: sabbbas.a30@gmail.com"}
12
+
{"level":"info","message":"✅ User login: viewer@test.com"}
13
+
{"level":"info","message":"User logout attempt"}
14
+
{"level":"info","message":"✅ User login: sabbbas.a30@gmail.com"}
15
+
{"level":"info","message":"✅ User registered: viewer@test.com by 68954bf93b3dcab949394620"}
16
+
{"level":"info","message":"✅ User login: viewer@test.com"}
17
+
{"level":"info","message":"User logout attempt"}
18
+
{"level":"info","message":"✅ User login: sabbbas.a30@gmail.com"}
19
+
{"level":"info","message":"✅ User login: sabbbas.a30@gmail.com"}
20
+
{"level":"info","message":"✅ User registered: viewer_1754615267686@test.com by 68954de468228c1b5a79ecaa"}
21
+
{"level":"info","message":"✅ User login: viewer_1754615267686@test.com"}
Copy file name to clipboardExpand all lines: app/package.json
+7-3Lines changed: 7 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -2,13 +2,13 @@
2
2
"name": "vision-index",
3
3
"version": "1.0.0",
4
4
"main": "server.js",
5
+
"type": "module",
5
6
"scripts": {
6
7
"start": "node server.js",
7
8
"dev": "nodemon server.js",
8
9
"lint": "eslint . --ext .js",
9
-
"test": "echo\"Error: no test specified\"&& exit 1"
10
+
"test": "mocha\"tests/**/*.js\"--timeout 10000"
10
11
},
11
-
"type": "module",
12
12
"keywords": [
13
13
"visionindex",
14
14
"facial recognition",
@@ -43,6 +43,7 @@
43
43
"description": "Backend for VisionIndex – a post-event facial recognition system that analyzes CCTV recordings to track and log individual presence across institutional zones for attendance and security auditing.",
0 commit comments