File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change 44
44
*/
45
45
static NSString *const kErrorUserInfoEmailKey = @" FIRAuthErrorUserInfoEmailKey" ;
46
46
47
+ /* * @var kFirebaseAuthUIFrameworkMarker
48
+ @brief The marker in the HTTP header that indicates the presence of Firebase Auth UI.
49
+ */
50
+ static NSString *const kFirebaseAuthUIFrameworkMarker = @" FirebaseUI-iOS" ;
51
+
52
+ /* * @category FIRAuth(InternalInterface)
53
+ @brief Redeclares the internal interface not publicly exposed in FIRAuth.
54
+ */
55
+ @interface FIRAuth (InternalInterface)
56
+
57
+ /* * @property additionalFrameworkMarker
58
+ @brief Additional framework marker that will be added as part of the header of every request.
59
+ */
60
+ @property (nonatomic , copy , nullable ) NSString *additionalFrameworkMarker;
61
+
62
+ @end
63
+
47
64
@interface FUIAuth ()
48
65
49
66
/* * @fn initWithAuth:
@@ -72,6 +89,9 @@ + (nullable FUIAuth *)authUIWithAuth:(FIRAuth *)auth {
72
89
authUI = [[FUIAuth alloc ] initWithAuth: auth];
73
90
objc_setAssociatedObject (auth, &kAuthAssociationKey , authUI,
74
91
OBJC_ASSOCIATION_RETAIN_NONATOMIC );
92
+ if ([auth respondsToSelector: @selector (setAdditionalFrameworkMarker: )]) {
93
+ auth.additionalFrameworkMarker = kFirebaseAuthUIFrameworkMarker ;
94
+ }
75
95
}
76
96
return authUI;
77
97
}
You can’t perform that action at this time.
0 commit comments