mbkauthe 4.6.0 → 4.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +3 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -65,10 +65,11 @@ async function checkVersion() {
65
65
  }
66
66
  }
67
67
 
68
+ app.use(router);
69
+
68
70
  if (process.env.test === "dev") {
69
71
  console.log("[mbkauthe] Dev mode is enabled. Starting server in dev mode.");
70
72
  const port = 5555;
71
- app.use(router);
72
73
  app.get(["/dashboard", "/home", "/"], (req, res) => {
73
74
  return res.redirect("/mbkauthe/");
74
75
  });
@@ -136,4 +137,4 @@ export {
136
137
  } from "./lib/config/cookies.js";
137
138
  export { hashPassword, hashApiToken } from "./lib/config/security.js";
138
139
  export { mbkautheVar } from "#config.js";
139
- export default router;
140
+ export default app;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mbkauthe",
3
- "version": "4.6.0",
3
+ "version": "4.6.1",
4
4
  "description": "MBKTech's reusable authentication system for Node.js applications.",
5
5
  "main": "index.js",
6
6
  "type": "module",