diff --git a/FirebaseAuth/Sources/Utilities/FIRAuthWebUtils.h b/FirebaseAuth/Sources/Utilities/FIRAuthWebUtils.h index 7a3d080b245..29f62eb3f23 100644 --- a/FirebaseAuth/Sources/Utilities/FIRAuthWebUtils.h +++ b/FirebaseAuth/Sources/Utilities/FIRAuthWebUtils.h @@ -59,6 +59,12 @@ typedef void (^FIRFetchAuthDomainCallback)(NSString *_Nullable authDomain, authType:(NSString *)authType callbackScheme:(NSString *)callbackScheme; +/** @fn extractDomain:urlString + @brief Strips url of scheme and path string to extract domain name + @param urlString URL string for domain + */ ++ (NSString *)extractDomain:(NSString *)urlString; + /** @fn fetchAuthDomainWithCompletion:completion: @brief Fetches the auth domain associated with the Firebase Project. @param completion The callback invoked after the auth domain has been constructed or an error diff --git a/FirebaseAuth/Tests/Unit/FIRAuthWebUtilsTests.m b/FirebaseAuth/Tests/Unit/FIRAuthWebUtilsTests.m index 16d1e9a7f58..3b8f5daa388 100644 --- a/FirebaseAuth/Tests/Unit/FIRAuthWebUtilsTests.m +++ b/FirebaseAuth/Tests/Unit/FIRAuthWebUtilsTests.m @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#import + #import -#import "FIRAuthWebUtils.h" +#import "FirebaseAuth/Sources/Utilities/FIRAuthWebUtils.h" /** @class FIRAuthWebUtilsTests @brief Tests for the FIRAuthWebUtils class.