Skip to content

Commit b807226

Browse files
authored
fix for _userAccessGroup being nil when getStoredUserForAccessGroup is called (#7472)
* shareLoginAcrossDevices * shareLoginAcrossDevices * shareLoginAcrossDevices * shareLoginAcrossDevices * formatting * feedback changes * linted * setting _userAccessGroup needs to happen before getStoredUserForAccessGroup is called, because otherwise on first app launch, _userAccessGroup will be null, making it impossible for the app to find the shared keychain * proper fix as suggested by rosalyntan
1 parent 35b4210 commit b807226

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

FirebaseAuth/Sources/Auth/FIRAuth.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2258,7 +2258,7 @@ - (nullable FIRUser *)getStoredUserForAccessGroup:(NSString *_Nullable)accessGro
22582258
#endif // TARGET_OS_WATCH
22592259
user = [unarchiver decodeObjectOfClass:[FIRUser class] forKey:userKey];
22602260
} else {
2261-
user = [self.storedUserManager getStoredUserForAccessGroup:self.userAccessGroup
2261+
user = [self.storedUserManager getStoredUserForAccessGroup:accessGroup
22622262
shareAuthStateAcrossDevices:self.shareAuthStateAcrossDevices
22632263
projectIdentifier:self.app.options.APIKey
22642264
error:outError];

0 commit comments

Comments
 (0)