@interface FIRPhoneAuthProvider : NSObject
A concrete implementation of
FIRAuthProvider for phone auth providers.
Returns an instance of
FIRPhoneAuthProviderfor the default
+ (nonnull instancetype)provider;
Starts the phone number authentication flow by sending a verification code to the specified phone number.
The phone number to be verified.
An object used to present the SFSafariViewController. The object is retained by this method until the completion block is executed.
The callback to be invoked when the verification flow is finished. Possible error codes:
FIRAuthErrorCodeCaptchaCheckFailed- Indicates that the reCAPTCHA token obtained by the Firebase Auth is invalid or has expired.
FIRAuthErrorCodeQuotaExceeded- Indicates that the phone verification quota for this project has been exceeded.
FIRAuthErrorCodeInvalidPhoneNumber- Indicates that the phone number provided is invalid.
FIRAuthErrorCodeMissingPhoneNumber- Indicates that a phone number was not provided.
FIRAuthCredentialfor the phone number provider identified by the verification ID and verification code.
- (nonnull FIRPhoneAuthCredential *) credentialWithVerificationID:(nonnull NSString *)verificationID verificationCode:(nonnull NSString *)verificationCode;
The verification ID obtained from invoking verifyPhoneNumber:completion:
The verification code obtained from the user.
The corresponding phone auth credential for the verification ID and verification code provided.
Please use the
providerWithAuth:methods to obtain an instance of
- (nonnull instancetype)init;