Get the username
Gets the Tauri store (create or get current instance) and retrieves the username from the store.
Promise<string | null> - The username or null if not found.
If the store operation fails (e.g., I/O error).
const username = await getUsername(); Copy
const username = await getUsername();
Get the username
Gets the Tauri store (create or get current instance) and retrieves the username from the store.