mirror of
https://github.com/bitwarden/browser
synced 2026-02-26 17:43:22 +00:00
The validation functions required the newApplications field to be present, but this field is not in the type definition and old encrypted data doesn't have it. This was causing decryption failures with the error: "Invalid OrganizationReportSummary: missing or invalid fields: newApplications (string[])" Changes: - Updated isOrganizationReportSummary() to allow newApplications to be undefined - Updated validateOrganizationReportSummary() to only validate newApplications if present - Added comments explaining backward compatibility requirement This provides backward compatibility with existing encrypted data while still validating the field when it is present. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>