JWT tokens 1.0
This commit is contained in:
4
server/front/main/js.js
Normal file
4
server/front/main/js.js
Normal file
@@ -0,0 +1,4 @@
|
||||
const token = localStorage.getItem("token");
|
||||
if (!token) {
|
||||
window.location.href = "./../register/index.html";
|
||||
}
|
||||
Reference in New Issue
Block a user