Skip to content

Commit

Permalink
fix typo and remove un-used code
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiaoshouzi-gh committed Nov 26, 2024
1 parent 2c4c6c4 commit 2acbcd8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ import Foundation

/// Starts the flow to verify the client via silent push notification. This is used in both
/// .Audit and .Enforce mode
/// - Parameter retryOnInvalidAppCredential: Whether of not the flow should be retried if an
/// - Parameter retryOnInvalidAppCredential: Whether or not the flow should be retried if an
/// AuthErrorCodeInvalidAppCredential error is returned from the backend.
/// - Parameter phoneNumber: The phone number to be verified.
private func verifyClAndSendVerificationCodeWithRecaptcha(toPhoneNumber phoneNumber: String,
Expand Down Expand Up @@ -367,7 +367,7 @@ import Foundation

/// Starts the flow to verify the client via silent push notification.
/// This method is called in Audit fallback flow with "NO_RECAPTCHA" fake token and Off flow
/// - Parameter retryOnInvalidAppCredential: Whether of not the flow should be retried if an
/// - Parameter retryOnInvalidAppCredential: Whether or not the flow should be retried if an
/// AuthErrorCodeInvalidAppCredential error is returned from the backend.
/// - Parameter phoneNumber: The phone number to be verified.
private func verifyClAndSendVerificationCode(toPhoneNumber phoneNumber: String,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
return _shared
}

/// This function is only for testing.
class func setShared(_ instance: AuthRecaptchaVerifier, auth: Auth?) {
_shared = instance
_ = shared(auth: auth)
Expand Down
1 change: 0 additions & 1 deletion FirebaseAuth/Tests/Unit/PhoneAuthProviderTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
private let kRecaptchaVersion: String = "RECAPTCHA_ENTERPRISE"

static var auth: Auth?
// static var authRecaptchaVerifier: AuthRecaptchaVerifier

/** @fn testCredentialWithVerificationID
@brief Tests the @c credentialWithToken method to make sure that it returns a valid AuthCredential instance.
Expand Down

0 comments on commit 2acbcd8

Please sign in to comment.