[PM-29049] refactor: Validate PIN against pinProtectedUserKeyEnvelope#2863
[PM-29049] refactor: Validate PIN against pinProtectedUserKeyEnvelope#2863matt-livefront wants to merge 1 commit into
Conversation
🤖 Bitwarden Claude Code ReviewOverall Assessment: APPROVE Reviewed the PIN validation refactor that switches Code Review DetailsNo findings. The refactor is well-scoped, the type change compiles against the SDK envelope type, and test coverage matches the new control flow (the only throwing path, the state service lookup, is exercised by |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2863 +/- ##
==========================================
- Coverage 81.25% 78.98% -2.27%
==========================================
Files 1027 1150 +123
Lines 66091 73421 +7330
==========================================
+ Hits 53699 57994 +4295
- Misses 12392 15427 +3035 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
🎟️ Tracking
PM-29049
📔 Objective
Updates the SDK method used for validating PINs to
validatePinProtectedUserKeyEnvelope(pin: pinProtectedUserKeyEnvelope:). After migrating to the pin protected user key envelope in #1876, PIN validation needs to also use the envelope in order to validate correctly.