How-to guides
Protect sensitive content and clear web data
Enable native screen protection and delete local WebView data.
Enable protection
Configure and regenerate with internalPlugins.dataProtection: true.
Protect content
Enable protection before showing sensitive content and disable it when the flow ends:
const protection = useDataProtection(); // @akshatowo/radical/react
protection.setEnabled(true);
// After the sensitive flow:
protection.setEnabled(false);Read the returned status for supported protections.
Clear data
Stop writes, close other tabs and IndexedDB connections, then call from an explicit user action:
protection.clearWebData();After success, reload or show your signed-out screen.
Unmount does not disable protection. Clearing can fail after partial deletion;
handle protection.error before assuming data is gone.