mbkauthe 1.2.0 → 1.2.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.
package/index.js CHANGED
@@ -36,7 +36,7 @@ if (mbkautheVar.COOKIE_EXPIRE_TIME !== undefined) {
36
36
  const app = express();
37
37
  if (process.env.test === "true") {
38
38
  console.log("[mbkauthe] Test mode is enabled. Starting server in test mode.");
39
- const port = 3000;
39
+ const port = 5555;
40
40
  app.use(router);
41
41
  app.listen(port, () => {
42
42
  console.log(`[mbkauthe] Server running on http://localhost:${port}`);
package/lib/main.js CHANGED
@@ -729,7 +729,7 @@ router.get(["/mbkauthe/info", "/mbkauthe/i"], LoginLimit, async (_, res) => {
729
729
  <h2>Version Information</h2>
730
730
  <div class="info-row">
731
731
  <div class="info-label">Current Version:</div>
732
- <div class="info-value">${packageJson.version}</div>
732
+ <div class="info-value" id="CurrentVersion">${packageJson.version}</div>
733
733
  </div>
734
734
  <div class="info-row">
735
735
  <div class="info-label">Latest Version:</div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mbkauthe",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "MBKTechStudio's reusable authentication system for Node.js applications.",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -529,6 +529,21 @@
529
529
  showMessage('Failed to verify token. Please try again.', 'Error');
530
530
  }
531
531
  });
532
+
533
+ // Auto focus on empty token field
534
+ document.addEventListener('DOMContentLoaded', function () {
535
+ const urlParams = new URLSearchParams(window.location.search);
536
+ const tokenFromUrl = urlParams.get('token');
537
+ const tokenInput = document.getElementById('token');
538
+
539
+ if (tokenFromUrl) {
540
+ tokenInput.value = tokenFromUrl;
541
+ }
542
+
543
+ // Automatically focus the token input field
544
+ tokenInput.focus();
545
+ });
546
+
532
547
  </script>
533
548
  </body>
534
549