Updating SDK to 8266e16 (1.0.0-2742-fc75b90) (#2045)

Co-authored-by: bw-ghapp[bot] <178206702+bw-ghapp[bot]@users.noreply.github.com>
Co-authored-by: Carlos Gonçalves <cgoncalves@bitwarden.com>
This commit is contained in:
bw-ghapp[bot] 2025-10-17 16:41:57 +00:00 committed by GitHub
parent f705a2a264
commit 41181fccf2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 9 additions and 5 deletions

View File

@ -123,7 +123,7 @@
"kind" : "remoteSourceControl", "kind" : "remoteSourceControl",
"location" : "https://github.com/bitwarden/sdk-swift", "location" : "https://github.com/bitwarden/sdk-swift",
"state" : { "state" : {
"revision" : "1e16ec0e5e3f7045a82b747dc9cf5ddf06e13448" "revision" : "8266e167ae8e80f1bf1e9ab96ee5a4d46162c059"
} }
}, },
{ {

View File

@ -8,14 +8,16 @@ extension BitwardenSdk.InitUserCryptoMethod {
switch self { switch self {
case .authRequest: case .authRequest:
"Auth Request" "Auth Request"
case .password:
"Password"
case .decryptedKey: case .decryptedKey:
"Decrypted Key (Never Lock/Biometrics)" "Decrypted Key (Never Lock/Biometrics)"
case .deviceKey: case .deviceKey:
"Device Key" "Device Key"
case .keyConnector: case .keyConnector:
"Key Connector" "Key Connector"
case .masterPasswordUnlock:
"Master Password Unlock"
case .password:
"Password"
case .pin: case .pin:
"PIN" "PIN"
case .pinEnvelope: case .pinEnvelope:

View File

@ -1131,6 +1131,7 @@ extension DefaultAuthRepository: AuthRepository {
case .decryptedKey, case .decryptedKey,
.deviceKey, .deviceKey,
.keyConnector, .keyConnector,
.masterPasswordUnlock,
.pin, .pin,
.pinEnvelope: .pinEnvelope:
// No-op: nothing extra to do. // No-op: nothing extra to do.
@ -1246,6 +1247,7 @@ extension DefaultAuthRepository: AuthRepository {
) )
await flightRecorder.log("[Auth] Migrated from legacy PIN to PIN-protected user key envelope") await flightRecorder.log("[Auth] Migrated from legacy PIN to PIN-protected user key envelope")
case .decryptedKey, case .decryptedKey,
.masterPasswordUnlock,
.password: .password:
guard let encryptedPin = try await stateService.getEncryptedPin(), guard let encryptedPin = try await stateService.getEncryptedPin(),
try await stateService.pinProtectedUserKeyEnvelope() == nil try await stateService.pinProtectedUserKeyEnvelope() == nil
@ -1272,7 +1274,7 @@ extension DefaultAuthRepository: AuthRepository {
try await stateService.setPinProtectedUserKeyToMemory(enrollPinResponse.pinProtectedUserKeyEnvelope) try await stateService.setPinProtectedUserKeyToMemory(enrollPinResponse.pinProtectedUserKeyEnvelope)
await flightRecorder.log("[Auth] Set PIN-protected user key in memory") await flightRecorder.log("[Auth] Set PIN-protected user key in memory")
} }
case .pinEnvelope: case.pinEnvelope:
break break
} }
} }

View File

@ -14,7 +14,7 @@ include:
packages: packages:
BitwardenSdk: BitwardenSdk:
url: https://github.com/bitwarden/sdk-swift url: https://github.com/bitwarden/sdk-swift
revision: 1e16ec0e5e3f7045a82b747dc9cf5ddf06e13448 # 1.0.0-2679-cc36132 revision: 8266e167ae8e80f1bf1e9ab96ee5a4d46162c059 # 1.0.0-2742-fc75b90
branch: unstable branch: unstable
Firebase: Firebase:
url: https://github.com/firebase/firebase-ios-sdk url: https://github.com/firebase/firebase-ios-sdk