diff --git a/FirebaseAuth/CHANGELOG.md b/FirebaseAuth/CHANGELOG.md index 81388ecef86..60e625d55de 100644 --- a/FirebaseAuth/CHANGELOG.md +++ b/FirebaseAuth/CHANGELOG.md @@ -1,3 +1,8 @@ +# Unreleased +- [Fixed] Restore Firebase 10 behavior by querying with the + `kSecAttrSynchronizable` key when auth state is set to be shared across + devices. (#13584) + # 11.2.0 - [Fixed] Fixed crashes that could occur in Swift continuation blocks running in the Xcode 16 betas. (#13480) diff --git a/FirebaseAuth/Sources/Swift/SystemService/AuthStoredUserManager.swift b/FirebaseAuth/Sources/Swift/SystemService/AuthStoredUserManager.swift index ae2cb1d7d0a..b9471dc891f 100644 --- a/FirebaseAuth/Sources/Swift/SystemService/AuthStoredUserManager.swift +++ b/FirebaseAuth/Sources/Swift/SystemService/AuthStoredUserManager.swift @@ -161,6 +161,10 @@ class AuthStoredUserManager { ] query[kSecUseDataProtectionKeychain as String] = true + if shareAuthStateAcrossDevices { + query[kSecAttrSynchronizable as String] = true + } + return query } }