Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Firebase/Auth/Source/Auth/FIRAuth.m
Original file line number Diff line number Diff line change
Expand Up @@ -2020,13 +2020,13 @@ - (nullable FIRUser *)getStoredUserForAccessGroup:(NSString *_Nullable)accessGro
NSKeyedUnarchiver *unarchiver =
[[NSKeyedUnarchiver alloc] initForReadingWithData:encodedUserData];
user = [unarchiver decodeObjectOfClass:[FIRUser class] forKey:userKey];
user.auth = self;
} else {
user = [self.storedUserManager getStoredUserForAccessGroup:self.userAccessGroup
projectIdentifier:self.app.options.APIKey
error:outError];
}

user.auth = self;
return user;
}

Expand Down
2 changes: 1 addition & 1 deletion Firebase/Auth/Source/User/FIRUser.m
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ - (nullable instancetype)initWithCoder:(NSCoder *)aDecoder {
FIRUserMetadata *metadata =
[aDecoder decodeObjectOfClass:[FIRUserMetadata class] forKey:kMetadataCodingKey];
NSString *APIKey =
[aDecoder decodeObjectOfClass:[FIRUserMetadata class] forKey:kAPIKeyCodingKey];
[aDecoder decodeObjectOfClass:[NSString class] forKey:kAPIKeyCodingKey];
if (!userID || !tokenService) {
return nil;
}
Expand Down