All tests run on an 8-year-old MacBook Air. All results from shipping 7 Mac apps as a solo developer. No sponsored opinion.

Users enter their Gemini API key into your app. Where does it go? The wrong answer is localStorage. The right answer is the system keychain.

Why localStorage Is Wrong

localStorage in a Tauri WebView is just a file on disk. On macOS:

~/Library/WebKit/com.yourapp.app/WebsiteData/LocalStorage/