diff --git a/project.db-shm b/project.db-shm
index 67bfe5e..2396f9d 100644
Binary files a/project.db-shm and b/project.db-shm differ
diff --git a/project.db-wal b/project.db-wal
index 6da7dfa..ea52a0c 100644
Binary files a/project.db-wal and b/project.db-wal differ
diff --git a/public/home.html b/public/home.html
index 2c438aa..996d993 100644
--- a/public/home.html
+++ b/public/home.html
@@ -7,7 +7,7 @@
diff --git a/public/home.js b/public/home.js
index 656381a..56d8d42 100644
--- a/public/home.js
+++ b/public/home.js
@@ -9,6 +9,10 @@ const errorMessage = document.querySelector(".error p");
const success = document.querySelector(".success");
const successMessage = document.querySelector(".success p");
+const logoutLink = document.querySelector("#logout");
+
+//logoutLink.onclick = logout;
+
openKeyDB();
const encryptionKey = await getEncryptionKey()
@@ -184,3 +188,9 @@ function base64ToBuffer(base64) {
}
return bytes;
}
+
+function logout() {
+ localStorage.removeItem("token");
+ window.location.href = "/login"
+}
+