-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Recaptcha Enterprise integration with phone auth flows #13192
base: main
Are you sure you want to change the base?
Conversation
Generated by 🚫 Danger |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add unit tests for the new functionality?
FirebaseAuth/Sources/Swift/AuthProvider/PhoneAuthProvider.swift
Outdated
Show resolved
Hide resolved
FirebaseAuth/Sources/Swift/AuthProvider/PhoneAuthProvider.swift
Outdated
Show resolved
Hide resolved
...thenticationExample/ViewControllers/OtherAuthMethodControllers/PhoneAuthViewController.swift
Show resolved
Hide resolved
FirebaseAuth/Sources/Swift/AuthProvider/PhoneAuthProvider.swift
Outdated
Show resolved
Hide resolved
FirebaseAuth/Sources/Swift/AuthProvider/PhoneAuthProvider.swift
Outdated
Show resolved
Hide resolved
...thenticationExample/ViewControllers/OtherAuthMethodControllers/PhoneAuthViewController.swift
Show resolved
Hide resolved
FirebaseAuth/Sources/Swift/AuthProvider/PhoneAuthProvider.swift
Outdated
Show resolved
Hide resolved
FirebaseAuth/Sources/Swift/AuthProvider/PhoneAuthProvider.swift
Outdated
Show resolved
Hide resolved
} | ||
} | ||
|
||
private func verifyClAndSendVerificationCodeWithRecaptcha(toPhoneNumber phoneNumber: String, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we add a api reference here? what does cl stand for?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cl stands for client I think, deriving the name from an existing implementation of verifyClAndSendVerificationCode
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
got it, might still worth adding a comment here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Expectations are usually needed for testing callback functions and not needed for testing async
functions.
FirebaseAuth/Sources/Swift/AuthProvider/PhoneAuthProvider.swift
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
} | ||
} | ||
|
||
private func verifyClAndSendVerificationCodeWithRecaptcha(toPhoneNumber phoneNumber: String, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
got it, might still worth adding a comment here.
Changes made
Unit tests continued in #13547
TODO: Figure out how to fake
FIRGetRecaptchaToken
to execute the pending tests