aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firebase/Core/Private
diff options
context:
space:
mode:
authorGravatar Ryan Wilson <wilsonryan@google.com>2017-08-04 15:42:14 -0700
committerGravatar GitHub <noreply@github.com>2017-08-04 15:42:14 -0700
commit6e00706604c3452ad44fc401e4195e0462da1db1 (patch)
tree5f660ad33321c862ead8ed2ecb4da5333ca5040f /Firebase/Core/Private
parent84c21ce80db8251703966e10b12c1b39d9099f12 (diff)
Move Auth notification constant into Core. (#155)
* Move Auth notification constant into Core. SDKs that want to listen for the internal Auth notifications needed to copy the notification strings to their own SDK instead of relying on Auth's definition in order to avoid a dependency on Auth. By moving them to Core, SDKs can use the constants without taking on another dependency. * Remove Auth stub, add app instance to notification.
Diffstat (limited to 'Firebase/Core/Private')
-rw-r--r--Firebase/Core/Private/FIRAppInternal.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/Firebase/Core/Private/FIRAppInternal.h b/Firebase/Core/Private/FIRAppInternal.h
index 54098d1..aa73d8d 100644
--- a/Firebase/Core/Private/FIRAppInternal.h
+++ b/Firebase/Core/Private/FIRAppInternal.h
@@ -60,6 +60,29 @@ extern NSString *const kFIRAppIsDefaultAppKey;
extern NSString *const kFIRAppNameKey;
extern NSString *const kFIRGoogleAppIDKey;
+/** @var FIRAuthStateDidChangeInternalNotification
+ @brief The name of the @c NSNotificationCenter notification which is posted when the auth state
+ changes (e.g. a new token has been produced, a user logs in or out). The object parameter of
+ the notification is a dictionary possibly containing the key:
+ @c FIRAuthStateDidChangeInternalNotificationTokenKey (the new access token.) If it does not
+ contain this key it indicates a sign-out event took place.
+ */
+extern NSString *const FIRAuthStateDidChangeInternalNotification;
+
+/** @var FIRAuthStateDidChangeInternalNotificationTokenKey
+ @brief A key present in the dictionary object parameter of the
+ @c FIRAuthStateDidChangeInternalNotification notification. The value associated with this
+ key will contain the new access token.
+ */
+extern NSString *const FIRAuthStateDidChangeInternalNotificationTokenKey;
+
+/** @var FIRAuthStateDidChangeInternalNotificationAppKey
+ @brief A key present in the dictionary object parameter of the
+ @c FIRAuthStateDidChangeInternalNotification notification. The value associated with this
+ key will contain the FIRApp associated with the auth instance.
+ */
+extern NSString *const FIRAuthStateDidChangeInternalNotificationAppKey;
+
/** @typedef FIRTokenCallback
@brief The type of block which gets called when a token is ready.
*/