//! WASM session singleton for the vault crate
//! This file defines the global SessionManager singleton for WASM builds.

use once_cell::unsync::Lazy;
use std::cell::RefCell;
use crate::session::SessionManager;
use kvstore::wasm::WasmStore;

// Thread-local singleton for WASM session management
thread_local! {
    pub static SESSION_MANAGER: Lazy<RefCell<Option<SessionManager<WasmStore>>>> = Lazy::new(|| RefCell::new(None));
}
