- Eliminated the caching of target types in SessionManager, simplifying the management of target information.
- Updated various components to directly access target types from the Target objects, enhancing clarity and reducing redundancy.
- Adjusted related methods in BrowserSession, CrashWatchdog, and DomService to reflect the changes in target type retrieval.
- Changed the placeholder check from '2fa_code' to 'bu_2fa_code' to align with recent updates in sensitive data terminology.
- This modification enhances consistency in the handling of 2FA secrets across the codebase.
- Changed the key in sensitive_data from 'otp_secret' to '2fa_code' for consistency across files.
- Updated instructions in the 2FA example to reflect the new key and improve clarity on user input.
These changes enhance the clarity and maintainability of the 2FA implementation.
- Improved handling of sensitive data replacement by ensuring that the correct replacement value is assigned based on the placeholder type.
- Added comments for clarity on the logic used for generating TOTP codes for 2FA secrets.
This change enhances the maintainability and readability of the code.