File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 15
15
*/
16
16
17
17
#import " FAuthTokenProvider.h"
18
- #import " FUtilities.h"
18
+
19
+ #import < FirebaseAuthInterop/FIRAuthInterop.h>
19
20
#import < FirebaseCore/FIRAppInternal.h>
21
+ #import < FirebaseCore/FIRComponent.h>
22
+ #import < FirebaseCore/FIRComponentContainer.h>
20
23
#import < FirebaseCore/FIRLogger.h>
24
+
25
+ #import " FUtilities.h"
21
26
#import " FIRDatabaseQuery_Private.h"
22
27
#import " FIRNoopAuthTokenProvider.h"
23
28
@@ -84,8 +89,8 @@ - (instancetype) initWithFirebaseApp:(FIRApp *)app {
84
89
}
85
90
86
91
- (void ) fetchTokenForcingRefresh : (BOOL )forceRefresh withCallback : (fbt_void_nsstring_nserror)callback {
87
- // TODO: Don't fetch token if there is no current user
88
- [self .app getTokenForcingRefresh: forceRefresh withCallback: ^(NSString * _Nullable token, NSError * _Nullable error) {
92
+ id <FIRAuthInterop> auth = FIR_COMPONENT (FIRAuthInterop, self. app . container );
93
+ [auth getTokenForcingRefresh: forceRefresh withCallback: ^(NSString * _Nullable token, NSError * _Nullable error) {
89
94
dispatch_async ([FIRDatabaseQuery sharedQueue ], ^{
90
95
callback (token, error);
91
96
});
You can’t perform that action at this time.
0 commit comments