@@ -38,47 +38,44 @@ typedef void (^FIRVerificationResultCallback)(NSString *_Nullable verificationID
38
38
NS_SWIFT_NAME(VerificationResultCallback);
39
39
40
40
/* * @class FIRPhoneAuthProvider
41
- @brief A concrete implementation of @c FIRAuthProvider for phone auth providers.
41
+ @brief A concrete implementation of ` FIRAuthProvider` for phone auth providers.
42
42
*/
43
43
NS_SWIFT_NAME (PhoneAuthProvider)
44
44
@interface FIRPhoneAuthProvider : NSObject
45
45
46
46
/* * @fn provider
47
- @brief Returns an instance of @c FIRPhoneAuthProvider for the default @c FIRAuth object.
47
+ @brief Returns an instance of ` FIRPhoneAuthProvider` for the default ` FIRAuth` object.
48
48
*/
49
49
+ (instancetype )provider NS_SWIFT_NAME(provider());
50
50
51
51
/* * @fn providerWithAuth:
52
- @brief Returns an instance of @c FIRPhoneAuthProvider for the provided @c FIRAuth object.
52
+ @brief Returns an instance of ` FIRPhoneAuthProvider` for the provided ` FIRAuth` object.
53
53
54
54
@param auth The auth object to associate with the phone auth provider instance.
55
55
*/
56
56
+ (instancetype )providerWithAuth:(FIRAuth *)auth NS_SWIFT_NAME (provider(auth:));
57
57
58
58
/* * @fn verifyPhoneNumber:completion:
59
- @brief Please use @c verifyPhoneNumber:UIDelegate:completion: instead.
59
+ @brief Please use ` verifyPhoneNumber:UIDelegate:completion:` instead.
60
60
61
61
@param phoneNumber The phone number to be verified.
62
62
@param completion The callback to be invoked when the verification flow is finished.
63
63
64
64
@remarks Possible error codes:
65
- <ul>
66
- <li>@c FIRAuthErrorCodeAppNotVerified - Indicates that Firebase could not retrieve the
67
- silent push notification and therefore could not verify your app.</li>
68
- <li>@c FIRAuthErrorCodeInvalidAppCredential - Indicates that The APNs device token provided
65
+
66
+ + ` FIRAuthErrorCodeAppNotVerified` - Indicates that Firebase could not retrieve the
67
+ silent push notification and therefore could not verify your app.
68
+ + ` FIRAuthErrorCodeInvalidAppCredential` - Indicates that The APNs device token provided
69
69
is either incorrect or does not match the private certificate uploaded to the Firebase
70
- Console.</li>
71
- <li>@c FIRAuthErrorCodeQuotaExceeded - Indicates that the phone verification quota for this
72
- project has been exceeded.</li>
73
- <li>@c FIRAuthErrorCodeInvalidPhoneNumber - Indicates that the phone number provided is
74
- invalid.</li>
75
- <li>@c FIRAuthErrorCodeMissingPhoneNumber - Indicates that a phone number was not provided.
76
- </li>
77
- <li>@c FIRAuthErrorCodeMissingAppToken - Indicates that the APNs device token could not be
70
+ Console.
71
+ + `FIRAuthErrorCodeQuotaExceeded` - Indicates that the phone verification quota for this
72
+ project has been exceeded.
73
+ + `FIRAuthErrorCodeInvalidPhoneNumber` - Indicates that the phone number provided is
74
+ invalid.
75
+ + `FIRAuthErrorCodeMissingPhoneNumber` - Indicates that a phone number was not provided.
76
+ + `FIRAuthErrorCodeMissingAppToken` - Indicates that the APNs device token could not be
78
77
obtained. The app may not have set up remote notification correctly, or may fail to
79
78
forward the APNs device token to FIRAuth if app delegate swizzling is disabled.
80
- </li>
81
- </ul>
82
79
*/
83
80
- (void )verifyPhoneNumber:(NSString *)phoneNumber
84
81
completion:(nullable FIRVerificationResultCallback)completion
@@ -92,23 +89,21 @@ NS_SWIFT_NAME(PhoneAuthProvider)
92
89
by this method until the completion block is executed.
93
90
@param completion The callback to be invoked when the verification flow is finished.
94
91
@remarks Possible error codes:
95
- <ul>
96
- <li>@c FIRAuthErrorCodeCaptchaCheckFailed - Indicates that the reCAPTCHA token obtained by
97
- the Firebase Auth is invalid or has expired.</li>
98
- <li>@c FIRAuthErrorCodeQuotaExceeded - Indicates that the phone verification quota for this
99
- project has been exceeded.</li>
100
- <li>@c FIRAuthErrorCodeInvalidPhoneNumber - Indicates that the phone number provided is
101
- invalid.</li>
102
- <li>@c FIRAuthErrorCodeMissingPhoneNumber - Indicates that a phone number was not provided.
103
- </li>
104
- </ul>
92
+
93
+ + `FIRAuthErrorCodeCaptchaCheckFailed` - Indicates that the reCAPTCHA token obtained by
94
+ the Firebase Auth is invalid or has expired.
95
+ + `FIRAuthErrorCodeQuotaExceeded` - Indicates that the phone verification quota for this
96
+ project has been exceeded.
97
+ + `FIRAuthErrorCodeInvalidPhoneNumber` - Indicates that the phone number provided is
98
+ invalid.
99
+ + `FIRAuthErrorCodeMissingPhoneNumber` - Indicates that a phone number was not provided.
105
100
*/
106
101
- (void )verifyPhoneNumber:(NSString *)phoneNumber
107
102
UIDelegate:(nullable id <FIRAuthUIDelegate>)UIDelegate
108
103
completion:(nullable FIRVerificationResultCallback)completion;
109
104
110
105
/* * @fn credentialWithVerificationID:verificationCode:
111
- @brief Creates an @c FIRAuthCredential for the phone number provider identified by the
106
+ @brief Creates an ` FIRAuthCredential` for the phone number provider identified by the
112
107
verification ID and verification code.
113
108
114
109
@param verificationID The verification ID obtained from invoking
@@ -121,8 +116,8 @@ NS_SWIFT_NAME(PhoneAuthProvider)
121
116
verificationCode:(NSString *)verificationCode;
122
117
123
118
/* * @fn init
124
- @brief Please use the @c provider or @c providerWithAuth: methods to obtain an instance of
125
- @c FIRPhoneAuthProvider.
119
+ @brief Please use the ` provider` or ` providerWithAuth:` methods to obtain an instance of
120
+ ` FIRPhoneAuthProvider` .
126
121
*/
127
122
- (instancetype )init NS_UNAVAILABLE;
128
123
0 commit comments