aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firebase/Auth/Source/FIRAuth.m
diff options
context:
space:
mode:
Diffstat (limited to 'Firebase/Auth/Source/FIRAuth.m')
-rw-r--r--Firebase/Auth/Source/FIRAuth.m14
1 files changed, 11 insertions, 3 deletions
diff --git a/Firebase/Auth/Source/FIRAuth.m b/Firebase/Auth/Source/FIRAuth.m
index d2915a3..dd0b0bf 100644
--- a/Firebase/Auth/Source/FIRAuth.m
+++ b/Firebase/Auth/Source/FIRAuth.m
@@ -64,6 +64,7 @@
#import "FIRAuthAppDelegateProxy.h"
#import "AuthProviders/Phone/FIRPhoneAuthCredential_Internal.h"
#import "FIRAuthNotificationManager.h"
+#import "FIRAuthURLPresenter.h"
#endif
#pragma mark - Constants
@@ -387,6 +388,9 @@ static NSMutableDictionary *gKeychainServiceNameForAppName;
});
return uid;
};
+ #if TARGET_OS_IOS
+ _authURLPresenter = [[FIRAuthURLPresenter alloc] init];
+ #endif
}
return self;
}
@@ -984,11 +988,15 @@ static NSMutableDictionary *gKeychainServiceNameForAppName;
});
return result;
}
-#endif
-- (BOOL)canHandleURL:(NSURL *)url {
- return NO;
+- (BOOL)canHandleURL:(NSURL *)URL {
+ __block BOOL result = NO;
+ dispatch_sync(FIRAuthGlobalWorkQueue(), ^{
+ result = [_authURLPresenter canHandleURL:URL];
+ });
+ return result;
}
+#endif
#pragma mark - Internal Methods