fix: hardcode keyspace value to "vault" in init_session function

This commit is contained in:
Sameh Abouel-saad 2025-05-22 12:53:27 +03:00
parent ed76ba3d8d
commit 1f2d7e3fec
2 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ pub use vault::session_singleton::SESSION_MANAGER;
pub async fn init_session(keyspace: &str, password: &str) -> Result<(), JsValue> {
let keyspace = keyspace.to_string();
let password_vec = password.as_bytes().to_vec();
match WasmStore::open(&keyspace).await {
match WasmStore::open("vault").await {
Ok(store) => {
let vault = vault::Vault::new(store);
let mut manager = SessionManager::new(vault);