Skip to content

Commit e3822e6

Browse files
authored
[Auth] Query with kSecAttrSynchronizable when auth sharing enabled (#13642)
1 parent e81ea8e commit e3822e6

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

FirebaseAuth/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# Unreleased
2+
- [Fixed] Restore Firebase 10 behavior by querying with the
3+
`kSecAttrSynchronizable` key when auth state is set to be shared across
4+
devices. (#13584)
5+
16
# 11.2.0
27
- [Fixed] Fixed crashes that could occur in Swift continuation blocks running in the Xcode 16
38
betas. (#13480)

FirebaseAuth/Sources/Swift/SystemService/AuthStoredUserManager.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,10 @@ class AuthStoredUserManager {
161161
]
162162
query[kSecUseDataProtectionKeychain as String] = true
163163

164+
if shareAuthStateAcrossDevices {
165+
query[kSecAttrSynchronizable as String] = true
166+
}
167+
164168
return query
165169
}
166170
}

0 commit comments

Comments
 (0)