Skip to content

Commit

Permalink
Update FIRAuthRecaptchaVerifier.m
Browse files Browse the repository at this point in the history
  • Loading branch information
renkelvin committed Jul 24, 2023
1 parent c22c331 commit b37e880
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions FirebaseAuth/Sources/Utilities/FIRAuthRecaptchaVerifier.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* limitations under the License.
*/

#if TARGET_OS_IOS && !TARGET_OS_MACCATALYST

#import "FirebaseAuth/Sources/Utilities/FIRAuthRecaptchaVerifier.h"

#import "FirebaseAuth/Sources/Auth/FIRAuth_Internal.h"
Expand All @@ -24,10 +26,8 @@
#import "FirebaseAuth/Sources/Public/FirebaseAuth/FIRAuth.h"
#import "FirebaseAuth/Sources/Utilities/FIRAuthErrorUtils.h"

#if TARGET_OS_IOS
#import <RecaptchaInterop/RCAActionProtocol.h>
#import <RecaptchaInterop/RCARecaptchaProtocol.h>
#endif

static const NSDictionary *providerToStringMap;
static const NSDictionary *actionToStringMap;
Expand Down Expand Up @@ -77,7 +77,6 @@ - (NSString *)siteKey {
}
}

#if TARGET_OS_IOS && !TARGET_OS_MACCATALYST
- (BOOL)enablementStatusForProvider:(FIRAuthRecaptchaProvider)provider {
if (self.auth.tenantID == nil) {
return [self->_agentConfig.enablementStatus[providerToStringMap[@(provider)]] boolValue];
Expand Down Expand Up @@ -248,6 +247,7 @@ - (void)injectRecaptchaFields:(FIRIdentityToolkitRequest<FIRAuthRPCRequest> *)re
}
}];
}
#endif

@end

#endif

0 comments on commit b37e880

Please sign in to comment.