From 82afd48af0043ff95c27fa5f511f849f8378f21b Mon Sep 17 00:00:00 2001 From: Jin Park Date: Tue, 5 Jul 2022 22:24:08 +0900 Subject: [PATCH] fix based on https://github.com/auth0/react-native-auth0/pull/369 --- ios/A0Auth0.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios/A0Auth0.m b/ios/A0Auth0.m index 80d3ec7c..f9c9a4ea 100644 --- a/ios/A0Auth0.m +++ b/ios/A0Auth0.m @@ -92,7 +92,7 @@ - (void)presentAuthenticationSession:(NSURL *)url usingEphemeralSession:(BOOL)ep NSURLQueryItem *queryItem = [[queryItems filteredArrayUsingPredicate:predicate] firstObject]; - NSString *callbackURLScheme = queryItem.value; + NSString *callbackURLScheme = [[NSURL URLWithString: queryItem.value] scheme]; RCTResponseSenderBlock callback = self.sessionCallback ? self.sessionCallback : ^void(NSArray *_unused) {}; if (@available(iOS 12.0, *)) {