Skip to content

Commit 9fd4b9a

Browse files
authored
Fix Auth documentation warnings (#13)
1 parent d5c3cb6 commit 9fd4b9a

File tree

7 files changed

+17
-18
lines changed

7 files changed

+17
-18
lines changed

Example/Auth/Tests/FIRApp+FIRAuthUnitTests.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
#import "FIRAppInternal.h"
1818

19-
/** @class FIRAuthTests
19+
/** @category FIRApp (FIRAuthUnitTests)
2020
@brief Tests for @c FIRAuth.
2121
*/
2222
@interface FIRApp (FIRAuthUnitTests)

Example/Auth/Tests/FIRAuthBackendRPCImplementationTests.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ - (void)postWithRequest:(id<FIRAuthRPCRequest>)request
124124

125125
@end
126126

127-
/** @class FIRAuthBackend
127+
/** @extension FIRAuthBackend
128128
@brief This class extension exposes the otherwise private @c implementation method. We use this
129129
here to directly call the @c postWithRequest:response:callback: method of
130130
@c FIRAuthBackendRPCImplementation in some of the tests.

Example/Auth/Tests/FIRUserTests.m

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1553,7 +1553,6 @@ - (void)signInWithEmailPasswordWithMockUserInfoResponse:(id)mockUserInfoResponse
15531553
@brief Expects a GetAccountInfo request on the mock backend and calls back with provided
15541554
fake account data.
15551555
@param mockUserInfoResponse A mock @c FIRGetAccountInfoResponseUser object containing user info.
1556-
@param count The number of times that this invocations should be expected.
15571556
*/
15581557
- (void)expectGetAccountInfoWithMockUserInfoResponse:(id)mockUserInfoResponse {
15591558
OCMExpect([_mockBackend getAccountInfo:[OCMArg any] callback:[OCMArg any]])

Firebase/Auth/Source/AuthProviders/Phone/FIRPhoneAuthCredential_Internal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
NS_ASSUME_NONNULL_BEGIN
2323

24-
/** @class FIRPhoneAuthCredential
24+
/** @extension FIRPhoneAuthCredential
2525
@brief Internal implementation of FIRAuthCredential for Phone Auth credentials.
2626
*/
2727
@interface FIRPhoneAuthCredential ()

Firebase/Auth/Source/FIRUser.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ static void callInMainThreadWithUserAndError(_Nullable CallbackWithUserAndError
159159
/** @fn callInMainThreadWithUserAndError
160160
@brief Calls a callback in main thread with user and error.
161161
@param callback The callback to be called in main thread.
162-
@param user The user to pass to callback if there is no error.
162+
@param result The result to pass to callback if there is no error.
163163
@param error The error to pass to callback.
164164
*/
165165
static void callInMainThreadWithAuthDataResultAndError(

Firebase/Auth/Source/RPCs/FIRAuthBackend.h

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ typedef void (^FIRAuthBackendRPCIssuerCompletionHandler)(NSData *_Nullable data,
6464
@remarks One of response or error will be non-nil.
6565
*/
6666
typedef void (^FIRCreateAuthURIResponseCallback)
67-
(FIRCreateAuthURIResponse *_Nullable, NSError *_Nullable);
67+
(FIRCreateAuthURIResponse *_Nullable response, NSError *_Nullable error);
6868

6969
/** @typedef FIRGetAccountInfoResponseCallback
7070
@brief The type of block used to return the result of a call to the getAccountInfo
@@ -74,7 +74,7 @@ typedef void (^FIRCreateAuthURIResponseCallback)
7474
@remarks One of response or error will be non-nil.
7575
*/
7676
typedef void (^FIRGetAccountInfoResponseCallback)
77-
(FIRGetAccountInfoResponse *_Nullable, NSError *_Nullable);
77+
(FIRGetAccountInfoResponse *_Nullable response, NSError *_Nullable error);
7878

7979
/** @typedef FIRSetAccountInfoResponseCallback
8080
@brief The type of block used to return the result of a call to the setAccountInfo
@@ -84,7 +84,7 @@ typedef void (^FIRGetAccountInfoResponseCallback)
8484
@remarks One of response or error will be non-nil.
8585
*/
8686
typedef void (^FIRSetAccountInfoResponseCallback)
87-
(FIRSetAccountInfoResponse *_Nullable, NSError *_Nullable);
87+
(FIRSetAccountInfoResponse *_Nullable response, NSError *_Nullable error);
8888

8989
/** @typedef FIRSecureTokenResponseCallback
9090
@brief The type of block used to return the result of a call to the token endpoint.
@@ -93,7 +93,7 @@ typedef void (^FIRSetAccountInfoResponseCallback)
9393
@remarks One of response or error will be non-nil.
9494
*/
9595
typedef void (^FIRSecureTokenResponseCallback)
96-
(FIRSecureTokenResponse *_Nullable, NSError *_Nullable);
96+
(FIRSecureTokenResponse *_Nullable response, NSError *_Nullable error);
9797

9898
/** @typedef FIRVerifyAssertionResponseCallback
9999
@brief The type of block used to return the result of a call to the verifyAssertion
@@ -103,7 +103,7 @@ typedef void (^FIRSecureTokenResponseCallback)
103103
@remarks One of response or error will be non-nil.
104104
*/
105105
typedef void (^FIRVerifyAssertionResponseCallback)
106-
(FIRVerifyAssertionResponse *_Nullable, NSError *_Nullable);
106+
(FIRVerifyAssertionResponse *_Nullable response, NSError *_Nullable error);
107107

108108
/** @typedef FIRVerifyPasswordResponseCallback
109109
@brief The type of block used to return the result of a call to the verifyPassword
@@ -113,7 +113,7 @@ typedef void (^FIRVerifyAssertionResponseCallback)
113113
@remarks One of response or error will be non-nil.
114114
*/
115115
typedef void (^FIRVerifyPasswordResponseCallback)
116-
(FIRVerifyPasswordResponse *_Nullable, NSError *_Nullable);
116+
(FIRVerifyPasswordResponse *_Nullable response, NSError *_Nullable error);
117117

118118
/** @typedef FIRVerifyCustomTokenResponseCallback
119119
@brief The type of block used to return the result of a call to the verifyCustomToken
@@ -123,7 +123,7 @@ typedef void (^FIRVerifyPasswordResponseCallback)
123123
@remarks One of response or error will be non-nil.
124124
*/
125125
typedef void (^FIRVerifyCustomTokenResponseCallback)
126-
(FIRVerifyCustomTokenResponse *_Nullable, NSError *_Nullable);
126+
(FIRVerifyCustomTokenResponse *_Nullable response, NSError *_Nullable error);
127127

128128
/** @typedef FIRDeleteCallBack
129129
@brief The type of block called when a request delete account has finished.
@@ -139,7 +139,7 @@ typedef void (^FIRDeleteCallBack)(NSError *_Nullable error);
139139
@remarks One of response or error will be non-nil.
140140
*/
141141
typedef void (^FIRGetOOBConfirmationCodeResponseCallback)
142-
(FIRGetOOBConfirmationCodeResponse *_Nullable, NSError *_Nullable);
142+
(FIRGetOOBConfirmationCodeResponse *_Nullable response, NSError *_Nullable error);
143143

144144
/** @typedef FIRSignupNewUserCallback
145145
@brief The type of block used to return the result of a call to the signupNewUser endpoint.
@@ -148,7 +148,7 @@ typedef void (^FIRGetOOBConfirmationCodeResponseCallback)
148148
@remarks One of response or error will be non-nil.
149149
*/
150150
typedef void (^FIRSignupNewUserCallback)
151-
(FIRSignUpNewUserResponse *_Nullable, NSError *_Nullable);
151+
(FIRSignUpNewUserResponse *_Nullable response, NSError *_Nullable error);
152152

153153
/** @typedef FIRResetPasswordCallback
154154
@brief The type of block used to return the result of a call to the resetPassword endpoint.
@@ -157,7 +157,7 @@ typedef void (^FIRSignupNewUserCallback)
157157
@remarks One of response or error will be non-nil.
158158
*/
159159
typedef void (^FIRResetPasswordCallback)
160-
(FIRResetPasswordResponse *_Nullable, NSError *_Nullable);
160+
(FIRResetPasswordResponse *_Nullable response, NSError *_Nullable error);
161161

162162
/** @typedef FIRSendVerificationCodeResponseCallback
163163
@brief The type of block used to return the result of a call to the sendVerificationCode
@@ -167,7 +167,7 @@ typedef void (^FIRResetPasswordCallback)
167167
@remarks One of response or error will be non-nil.
168168
*/
169169
typedef void (^FIRSendVerificationCodeResponseCallback)
170-
(FIRSendVerificationCodeResponse *_Nullable, NSError *_Nullable);
170+
(FIRSendVerificationCodeResponse *_Nullable response, NSError *_Nullable error);
171171

172172
/** @typedef FIRVerifyPhoneNumberResponseCallback
173173
@brief The type of block used to return the result of a call to the verifyPhoneNumber endpoint.
@@ -176,7 +176,7 @@ typedef void (^FIRSendVerificationCodeResponseCallback)
176176
@remarks One of response or error will be non-nil.
177177
*/
178178
typedef void (^FIRVerifyPhoneNumberResponseCallback)
179-
(FIRVerifyPhoneNumberResponse *_Nullable, NSError *_Nullable);
179+
(FIRVerifyPhoneNumberResponse *_Nullable response, NSError *_Nullable error);
180180

181181
/** @class FIRAuthBackend
182182
@brief Simple static class with methods representing the backend RPCs.

Firebase/Auth/Source/RPCs/FIRResetPasswordRequest.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ NS_ASSUME_NONNULL_BEGIN
4343
@brief Designated initializer.
4444
@param APIKey The client's API Key.
4545
@param oobCode The OOB Code.
46-
@param currentPassword The new password.
46+
@param newPassword The new password.
4747
*/
4848
- (nullable instancetype)initWithAPIKey:(NSString *)APIKey
4949
oobCode:(NSString *)oobCode

0 commit comments

Comments
 (0)