JWT tokens 1.0

This commit is contained in:
2025-09-19 18:17:31 +03:00
parent 484fa0de23
commit 6b7a57dc6d
12 changed files with 139 additions and 11 deletions

View File

@@ -15,5 +15,6 @@
</form>
</div>
</div>
<script src="js.js"></script>
</body>
</html>

4
server/front/main/js.js Normal file
View File

@@ -0,0 +1,4 @@
const token = localStorage.getItem("token");
if (!token) {
window.location.href = "./../register/index.html";
}