aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firebase/Core
diff options
context:
space:
mode:
authorGravatar rsgowman <rgowman@google.com>2017-11-30 13:26:25 -0500
committerGravatar GitHub <noreply@github.com>2017-11-30 13:26:25 -0500
commita251259f3ce4a04b10eedb3c9d45671a55898191 (patch)
treefc264c491fabe59cacfefb9b53b20d861d1eba58 /Firebase/Core
parent81d2f97b2e34d9124667924df2d9365f5a31d2ae (diff)
Include UID when sending (internal) auth state change notifications (#507)
This is to allow firestore to not require an explicit dependency on auth.
Diffstat (limited to 'Firebase/Core')
-rw-r--r--Firebase/Core/FIRApp.m2
-rw-r--r--Firebase/Core/Private/FIRAppInternal.h7
2 files changed, 9 insertions, 0 deletions
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.
*/