diff --git a/components/Header.vue b/components/Header.vue
index b043055..5b257de 100644
--- a/components/Header.vue
+++ b/components/Header.vue
@@ -10,12 +10,18 @@
@@ -68,6 +74,8 @@ const navigation: Array = [
},
];
+const currentPageIndex = useCurrentNavigationIndex(navigation);
+
const quickActions: Array = [
{
icon: UserGroupIcon,
diff --git a/pages/index.vue b/pages/index.vue
index 10332f7..bba5f6e 100644
--- a/pages/index.vue
+++ b/pages/index.vue
@@ -1,5 +1,6 @@
-{{state}}
+
\ No newline at end of file
+const router = useRouter();
+router.replace("/store");
+
diff --git a/pages/store/index.vue b/pages/store/index.vue
new file mode 100644
index 0000000..27e0f69
--- /dev/null
+++ b/pages/store/index.vue
@@ -0,0 +1,3 @@
+
+
+
\ No newline at end of file
diff --git a/src-tauri/src/auth.rs b/src-tauri/src/auth.rs
index 74d072e..153161e 100644
--- a/src-tauri/src/auth.rs
+++ b/src-tauri/src/auth.rs
@@ -1,8 +1,9 @@
+use core::time;
use std::{
borrow::{Borrow, BorrowMut},
env,
fmt::format,
- sync::Mutex,
+ sync::Mutex, time::{SystemTime, UNIX_EPOCH},
};
use log::{info, warn};
@@ -69,7 +70,12 @@ pub fn generate_authorization_header() -> String {
db.auth.clone().unwrap()
};
- let nonce = Uuid::new_v4().to_string();
+ let start = SystemTime::now();
+ let timestamp = start
+ .duration_since(UNIX_EPOCH)
+ .expect("Time went backwards");
+ let nonce = timestamp.as_millis().to_string();
+
let signature = sign_nonce(certs.private, nonce.clone()).unwrap();
return format!("Nonce {} {} {}", certs.clientId, nonce, signature);