aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firebase/Auth/Source/FIRAuthWebUtils.m
diff options
context:
space:
mode:
Diffstat (limited to 'Firebase/Auth/Source/FIRAuthWebUtils.m')
-rw-r--r--Firebase/Auth/Source/FIRAuthWebUtils.m36
1 files changed, 1 insertions, 35 deletions
diff --git a/Firebase/Auth/Source/FIRAuthWebUtils.m b/Firebase/Auth/Source/FIRAuthWebUtils.m
index d694a06..398914b 100644
--- a/Firebase/Auth/Source/FIRAuthWebUtils.m
+++ b/Firebase/Auth/Source/FIRAuthWebUtils.m
@@ -16,8 +16,6 @@
#import "FIRAuthWebUtils.h"
-#import <GoogleToolboxForMac/GTMNSDictionary+URLArguments.h>
-
#import "FIRAuthBackend.h"
#import "FIRAuthErrorUtils.h"
#import "FIRGetProjectConfigRequest.h"
@@ -53,38 +51,6 @@ static NSString *const kAuthDomainSuffix = @"firebaseapp.com";
return NO;
}
-+ (BOOL)isExpectedCallbackURL:(NSURL *)URL
- eventID:(NSString *)eventID
- authType:(NSString *)authType
- callbackScheme:(NSString *)callbackScheme {
- if (!URL) {
- return NO;
- }
- NSURLComponents *actualURLComponents =
- [NSURLComponents componentsWithURL:URL resolvingAgainstBaseURL:NO];
- actualURLComponents.query = nil;
- actualURLComponents.fragment = nil;
-
- NSURLComponents *expectedURLComponents = [NSURLComponents new];
- expectedURLComponents.scheme = callbackScheme;
- expectedURLComponents.host = @"firebaseauth";
- expectedURLComponents.path = @"/link";
-
- if (!([[expectedURLComponents URL] isEqual:[actualURLComponents URL]])) {
- return NO;
- }
- NSDictionary<NSString *, NSString *> *URLQueryItems =
- [NSDictionary gtm_dictionaryWithHttpArgumentsString:URL.query];
- NSURL *deeplinkURL = [NSURL URLWithString:URLQueryItems[@"deep_link_id"]];
- NSDictionary<NSString *, NSString *> *deeplinkQueryItems =
- [NSDictionary gtm_dictionaryWithHttpArgumentsString:deeplinkURL.query];
- if ([deeplinkQueryItems[@"authType"] isEqualToString:authType] &&
- [deeplinkQueryItems[@"eventId"] isEqualToString:eventID]) {
- return YES;
- }
- return NO;
-}
-
+ (void)fetchAuthDomainWithRequestConfiguration:(FIRAuthRequestConfiguration *)requestConfiguration
completion:(FIRFetchAuthDomainCallback)completion {
FIRGetProjectConfigRequest *request =
@@ -131,4 +97,4 @@ static NSString *const kAuthDomainSuffix = @"firebaseapp.com";
return nil;
}
-@end \ No newline at end of file
+@end