aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--Firebase/Auth/Source/FIRAuth.m1
-rw-r--r--Firebase/Core/FIRApp.m2
-rw-r--r--Firebase/Core/Private/FIRAppInternal.h7
3 files changed, 10 insertions, 0 deletions
diff --git a/Firebase/Auth/Source/FIRAuth.m b/Firebase/Auth/Source/FIRAuth.m
index d5116ff..7300fdd 100644
--- a/Firebase/Auth/Source/FIRAuth.m
+++ b/Firebase/Auth/Source/FIRAuth.m
@@ -1297,6 +1297,7 @@ static NSMutableDictionary *gKeychainServiceNameForAppName;
if (token.length) {
internalNotificationParameters[FIRAuthStateDidChangeInternalNotificationTokenKey] = token;
}
+ internalNotificationParameters[FIRAuthStateDidChangeInternalNotificationUIDKey] = _currentUser.uid;
NSNotificationCenter *notifications = [NSNotificationCenter defaultCenter];
dispatch_async(dispatch_get_main_queue(), ^{
[notifications postNotificationName:FIRAuthStateDidChangeInternalNotification
diff --git a/Firebase/Core/FIRApp.m b/Firebase/Core/FIRApp.m
index 5efaa2e..835a1a4 100644
--- a/Firebase/Core/FIRApp.m
+++ b/Firebase/Core/FIRApp.m
@@ -60,6 +60,8 @@ NSString *const FIRAuthStateDidChangeInternalNotificationAppKey =
@"FIRAuthStateDidChangeInternalNotificationAppKey";
NSString *const FIRAuthStateDidChangeInternalNotificationTokenKey =
@"FIRAuthStateDidChangeInternalNotificationTokenKey";
+NSString *const FIRAuthStateDidChangeInternalNotificationUIDKey =
+ @"FIRAuthStateDidChangeInternalNotificationUIDKey";
/**
* The URL to download plist files.
diff --git a/Firebase/Core/Private/FIRAppInternal.h b/Firebase/Core/Private/FIRAppInternal.h
index 2a98268..447d151 100644
--- a/Firebase/Core/Private/FIRAppInternal.h
+++ b/Firebase/Core/Private/FIRAppInternal.h
@@ -83,6 +83,13 @@ extern NSString *const FIRAuthStateDidChangeInternalNotificationTokenKey;
*/
extern NSString *const FIRAuthStateDidChangeInternalNotificationAppKey;
+/** @var FIRAuthStateDidChangeInternalNotificationUIDKey
+ @brief A key present in the dictionary object parameter of the
+ @c FIRAuthStateDidChangeInternalNotification notification. The value associated with this
+ key will contain the new user's UID (or nil if there is no longer a user signed in).
+ */
+extern NSString *const FIRAuthStateDidChangeInternalNotificationUIDKey;
+
/** @typedef FIRTokenCallback
@brief The type of block which gets called when a token is ready.
*/