File tree Expand file tree Collapse file tree 3 files changed +16
-0
lines changed Expand file tree Collapse file tree 3 files changed +16
-0
lines changed Original file line number Diff line number Diff line change
1
+ # v8.12.0
2
+ - [ added] Added documentation note and error logging to ` getStoredUser(forAccessGroup:) ` regarding tvOS keychain sharing issues. (#8878 )
3
+
1
4
# v8.11.0
2
5
- [ changed] Added a ` X-Firebase-GMPID ` header to network requests. (#9046 )
3
6
- [ fixed] Added multi-tenancy support to generic OAuth providers. (#7990 )
Original file line number Diff line number Diff line change @@ -2261,6 +2261,16 @@ - (nullable FIRUser *)getStoredUserForAccessGroup:(NSString *_Nullable)accessGro
2261
2261
#endif // TARGET_OS_WATCH
2262
2262
user = [unarchiver decodeObjectOfClass: [FIRUser class ] forKey: userKey];
2263
2263
} else {
2264
+ #if TARGET_OS_TV
2265
+ if (self.shareAuthStateAcrossDevices ) {
2266
+ FIRLogError (kFIRLoggerAuth , @" I-AUT000001" ,
2267
+ @" Getting a stored user for a given access group is not supported "
2268
+ @" on tvOS when `shareAuthStateAcrossDevices` is set to `true` (#8878)."
2269
+ @" This case will return `nil`." );
2270
+ return nil ;
2271
+ }
2272
+ #endif // TARGET_OS_TV
2273
+
2264
2274
user = [self .storedUserManager getStoredUserForAccessGroup: accessGroup
2265
2275
shareAuthStateAcrossDevices: self .shareAuthStateAcrossDevices
2266
2276
projectIdentifier: self .app.options.APIKey
Original file line number Diff line number Diff line change @@ -857,6 +857,9 @@ NS_SWIFT_NAME(Auth)
857
857
858
858
/* * @fn getStoredUserForAccessGroup:error:
859
859
@brief Get the stored user in the given accessGroup.
860
+ @note This API is not supported on tvOS when `shareAuthStateAcrossDevices` is set to `true`.
861
+ This case will return `nil`.
862
+ Please refer to https://github.com/firebase/firebase-ios-sdk/issues/8878 for details.
860
863
*/
861
864
- (nullable FIRUser *)getStoredUserForAccessGroup:(NSString *_Nullable)accessGroup
862
865
error:(NSError *_Nullable *_Nullable)outError;
You can’t perform that action at this time.
0 commit comments