aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firestore/Source/Auth/FSTCredentialsProvider.mm
diff options
context:
space:
mode:
Diffstat (limited to 'Firestore/Source/Auth/FSTCredentialsProvider.mm')
-rw-r--r--Firestore/Source/Auth/FSTCredentialsProvider.mm6
1 files changed, 3 insertions, 3 deletions
diff --git a/Firestore/Source/Auth/FSTCredentialsProvider.mm b/Firestore/Source/Auth/FSTCredentialsProvider.mm
index c3fbeb0..e0dc8aa 100644
--- a/Firestore/Source/Auth/FSTCredentialsProvider.mm
+++ b/Firestore/Source/Auth/FSTCredentialsProvider.mm
@@ -62,7 +62,7 @@ NS_ASSUME_NONNULL_BEGIN
self = [super init];
if (self) {
_app = app;
- _currentUser = User([self.app getUID]);
+ _currentUser = User::FromUid([self.app getUID]);
_userCounter = 0;
// Register for user changes so that we can internally track the current user.
@@ -84,8 +84,8 @@ NS_ASSUME_NONNULL_BEGIN
return;
}
- NSString *userID = userInfo[FIRAuthStateDidChangeInternalNotificationUIDKey];
- User newUser = User(userID);
+ NSString *uid = userInfo[FIRAuthStateDidChangeInternalNotificationUIDKey];
+ User newUser = User::FromUid(uid);
if (newUser != self->_currentUser) {
self->_currentUser = newUser;
self.userCounter++;