Skip to content

Commit cb5f3ef

Browse files
alexg33paulb777
authored andcommitted
Updating the Auth header comments for Jazzy syntax (#535)
1 parent a904be7 commit cb5f3ef

12 files changed

+266
-354
lines changed

Firebase/Auth/Source/Public/FIRAdditionalUserInfo.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ NS_SWIFT_NAME(AdditionalUserInfo)
2727
@interface FIRAdditionalUserInfo : NSObject
2828

2929
/** @fn init
30-
@brief This class should not be initialized manually. @c FIRAdditionalUserInfo can be retrieved
31-
from from an instance of @c FIRAuthDataResult.
30+
@brief This class should not be initialized manually. `FIRAdditionalUserInfo` can be retrieved
31+
from from an instance of `FIRAuthDataResult`.
3232
*/
3333
- (instancetype)init NS_UNAVAILABLE;
3434

Firebase/Auth/Source/Public/FIRAuth.h

Lines changed: 128 additions & 171 deletions
Large diffs are not rendered by default.

Firebase/Auth/Source/Public/FIRAuthDataResult.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ NS_SWIFT_NAME(AuthDataResult)
2929
@interface FIRAuthDataResult : NSObject
3030

3131
/** @fn init
32-
@brief This class should not be initialized manually. @c FIRAuthDataResult instance is
33-
returned as part of @c FIRAuthDataResultCallback .
32+
@brief This class should not be initialized manually. `FIRAuthDataResult` instance is
33+
returned as part of `FIRAuthDataResultCallback`.
3434
*/
3535
- (instancetype)init NS_UNAVAILABLE;
3636

Firebase/Auth/Source/Public/FIRAuthErrors.h

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,21 @@
1818

1919
/** @class FIRAuthErrors
2020
@remarks Error Codes common to all API Methods:
21-
<ul>
22-
<li>@c FIRAuthErrorCodeNetworkError</li>
23-
<li>@c FIRAuthErrorCodeUserNotFound</li>
24-
<li>@c FIRAuthErrorCodeUserTokenExpired</li>
25-
<li>@c FIRAuthErrorCodeTooManyRequests</li>
26-
<li>@c FIRAuthErrorCodeInvalidAPIKey</li>
27-
<li>@c FIRAuthErrorCodeAppNotAuthorized</li>
28-
<li>@c FIRAuthErrorCodeKeychainError</li>
29-
<li>@c FIRAuthErrorCodeInternalError</li>
30-
</ul>
31-
@remarks Common error codes for @c FIRUser operations:
32-
<ul>
33-
<li>@c FIRAuthErrorCodeInvalidUserToken</li>
34-
<li>@c FIRAuthErrorCodeUserDisabled</li>
35-
</ul>
21+
22+
+ `FIRAuthErrorCodeNetworkError`
23+
+ `FIRAuthErrorCodeUserNotFound`
24+
+ `FIRAuthErrorCodeUserTokenExpired`
25+
+ `FIRAuthErrorCodeTooManyRequests`
26+
+ `FIRAuthErrorCodeInvalidAPIKey`
27+
+ `FIRAuthErrorCodeAppNotAuthorized`
28+
+ `FIRAuthErrorCodeKeychainError`
29+
+ `FIRAuthErrorCodeInternalError`
30+
31+
@remarks Common error codes for `FIRUser` operations:
32+
33+
+ `FIRAuthErrorCodeInvalidUserToken`
34+
+ `FIRAuthErrorCodeUserDisabled`
35+
3636
*/
3737
NS_SWIFT_NAME(AuthErrors)
3838
@interface FIRAuthErrors
@@ -54,8 +54,8 @@ extern NSString *const FIRAuthUpdatedCredentialKey NS_SWIFT_NAME(AuthUpdatedCred
5454
extern NSString *const FIRAuthErrorNameKey NS_SWIFT_NAME(AuthErrorNameKey);
5555

5656
/**
57-
@brief Errors with the code @c FIRAuthErrorCodeAccountExistsWithDifferentCredential may contain
58-
an @c NSError.userInfo dictinary object which contains this key. The value associated with
57+
@brief Errors with the code `FIRAuthErrorCodeAccountExistsWithDifferentCredential` may contain
58+
an `NSError.userInfo` dictinary object which contains this key. The value associated with
5959
this key is an NSString of the email address of the account that already exists.
6060
*/
6161
extern NSString *const FIRAuthErrorUserInfoEmailKey NS_SWIFT_NAME(AuthErrorUserInfoEmailKey);
@@ -127,7 +127,7 @@ typedef NS_ENUM(NSInteger, FIRAuthErrorCode) {
127127

128128
/** Indicates a network error occurred (such as a timeout, interrupted connection, or
129129
unreachable host). These types of errors are often recoverable with a retry. The
130-
@c NSUnderlyingError field in the @c NSError.userInfo dictionary will contain the error
130+
`NSUnderlyingError` field in the `NSError.userInfo` dictionary will contain the error
131131
encountered.
132132
*/
133133
FIRAuthErrorCodeNetworkError = 17020,
@@ -192,7 +192,7 @@ typedef NS_ENUM(NSInteger, FIRAuthErrorCode) {
192192
*/
193193
FIRAuthErrorCodeMissingIosBundleID = 17036,
194194

195-
/** Indicates that the android package name is missing when the @c androidInstallApp flag is set
195+
/** Indicates that the android package name is missing when the `androidInstallApp` flag is set
196196
to true.
197197
*/
198198
FIRAuthErrorCodeMissingAndroidPackageName = 17037,
@@ -212,12 +212,12 @@ typedef NS_ENUM(NSInteger, FIRAuthErrorCode) {
212212
FIRAuthErrorCodeMissingContinueURI = 17040,
213213

214214
/** Indicates that a phone number was not provided in a call to
215-
@c verifyPhoneNumber:completion:.
215+
`verifyPhoneNumber:completion:`.
216216
*/
217217
FIRAuthErrorCodeMissingPhoneNumber = 17041,
218218

219219
/** Indicates that an invalid phone number was provided in a call to
220-
@c verifyPhoneNumber:completion:.
220+
`verifyPhoneNumber:completion:`.
221221
*/
222222
FIRAuthErrorCodeInvalidPhoneNumber = 17042,
223223

@@ -295,7 +295,7 @@ typedef NS_ENUM(NSInteger, FIRAuthErrorCode) {
295295
*/
296296
FIRAuthErrorCodeWebNetworkRequestFailed = 17061,
297297

298-
/** Indicates that an internal error occured within a SFSafariViewController or UIWebview.
298+
/** Indicates that an internal error occurred within a SFSafariViewController or UIWebview.
299299
*/
300300
FIRAuthErrorCodeWebInternalError = 17062,
301301

Firebase/Auth/Source/Public/FIREmailAuthProvider.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,24 +26,24 @@ NS_ASSUME_NONNULL_BEGIN
2626
extern NSString *const FIREmailAuthProviderID NS_SWIFT_NAME(EmailAuthProviderID);
2727

2828
/**
29-
@brief please use @c FIREmailAuthProviderID instead.
29+
@brief please use `FIREmailAuthProviderID` instead.
3030
*/
3131
extern NSString *const FIREmailPasswordAuthProviderID __attribute__((deprecated));
3232

3333
/** @class FIREmailAuthProvider
34-
@brief A concrete implementation of @c FIRAuthProvider for Email & Password Sign In.
34+
@brief A concrete implementation of `FIRAuthProvider` for Email & Password Sign In.
3535
*/
3636
NS_SWIFT_NAME(EmailAuthProvider)
3737
@interface FIREmailAuthProvider : NSObject
3838

3939
/** @typedef FIREmailPasswordAuthProvider
40-
@brief Please use @c FIREmailAuthProvider instead.
40+
@brief Please use `FIREmailAuthProvider` instead.
4141
*/
4242
typedef FIREmailAuthProvider FIREmailPasswordAuthProvider __attribute__((deprecated));
4343

4444

4545
/** @fn credentialWithEmail:password:
46-
@brief Creates an @c FIRAuthCredential for an email & password sign in.
46+
@brief Creates an `FIRAuthCredential` for an email & password sign in.
4747
4848
@param email The user's email address.
4949
@param password The user's password.

Firebase/Auth/Source/Public/FIRFacebookAuthProvider.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ NS_SWIFT_NAME(FacebookAuthProvider)
3232
@interface FIRFacebookAuthProvider : NSObject
3333

3434
/** @fn credentialWithAccessToken:
35-
@brief Creates an @c FIRAuthCredential for a Facebook sign in.
35+
@brief Creates an `FIRAuthCredential` for a Facebook sign in.
3636
3737
@param accessToken The Access Token from Facebook.
3838
@return A FIRAuthCredential containing the Facebook credentials.

Firebase/Auth/Source/Public/FIRGitHubAuthProvider.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ NS_SWIFT_NAME(GitHubAuthProvider)
3232
@interface FIRGitHubAuthProvider : NSObject
3333

3434
/** @fn credentialWithToken:
35-
@brief Creates an @c FIRAuthCredential for a GitHub sign in.
35+
@brief Creates an `FIRAuthCredential` for a GitHub sign in.
3636
3737
@param token The GitHub OAuth access token.
3838
@return A FIRAuthCredential containing the GitHub credential.

Firebase/Auth/Source/Public/FIRGoogleAuthProvider.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ NS_SWIFT_NAME(GoogleAuthProvider)
3232
@interface FIRGoogleAuthProvider : NSObject
3333

3434
/** @fn credentialWithIDToken:accessToken:
35-
@brief Creates an @c FIRAuthCredential for a Google sign in.
35+
@brief Creates an `FIRAuthCredential` for a Google sign in.
3636
3737
@param IDToken The ID Token from Google.
3838
@param accessToken The Access Token from Google.

Firebase/Auth/Source/Public/FIROAuthProvider.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@
2121
NS_ASSUME_NONNULL_BEGIN
2222

2323
/** @class FIROAuthProvider
24-
@brief A concrete implementation of @c FIRAuthProvider for generic OAuth Providers.
24+
@brief A concrete implementation of `FIRAuthProvider` for generic OAuth Providers.
2525
*/
2626
NS_SWIFT_NAME(OAuthProvider)
2727
@interface FIROAuthProvider : NSObject
2828

2929
/** @fn credentialWithProviderID:IDToken:accessToken:
30-
@brief Creates an @c FIRAuthCredential for that OAuth 2 provider identified by providerID, ID
30+
@brief Creates an `FIRAuthCredential` for that OAuth 2 provider identified by providerID, ID
3131
token and access token.
3232
3333
@param providerID The provider ID associated with the Auth credential being created.
@@ -42,7 +42,7 @@ NS_SWIFT_NAME(OAuthProvider)
4242

4343

4444
/** @fn credentialWithProviderID:accessToken:
45-
@brief Creates an @c FIRAuthCredential for that OAuth 2 provider identified by providerID using
45+
@brief Creates an `FIRAuthCredential` for that OAuth 2 provider identified by providerID using
4646
an ID token.
4747
4848
@param providerID The provider ID associated with the Auth credential being created.

Firebase/Auth/Source/Public/FIRPhoneAuthProvider.h

Lines changed: 26 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -38,47 +38,44 @@ typedef void (^FIRVerificationResultCallback)(NSString *_Nullable verificationID
3838
NS_SWIFT_NAME(VerificationResultCallback);
3939

4040
/** @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.
4242
*/
4343
NS_SWIFT_NAME(PhoneAuthProvider)
4444
@interface FIRPhoneAuthProvider : NSObject
4545

4646
/** @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.
4848
*/
4949
+ (instancetype)provider NS_SWIFT_NAME(provider());
5050

5151
/** @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.
5353
5454
@param auth The auth object to associate with the phone auth provider instance.
5555
*/
5656
+ (instancetype)providerWithAuth:(FIRAuth *)auth NS_SWIFT_NAME(provider(auth:));
5757

5858
/** @fn verifyPhoneNumber:completion:
59-
@brief Please use @c verifyPhoneNumber:UIDelegate:completion: instead.
59+
@brief Please use `verifyPhoneNumber:UIDelegate:completion:` instead.
6060
6161
@param phoneNumber The phone number to be verified.
6262
@param completion The callback to be invoked when the verification flow is finished.
6363
6464
@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
6969
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
7877
obtained. The app may not have set up remote notification correctly, or may fail to
7978
forward the APNs device token to FIRAuth if app delegate swizzling is disabled.
80-
</li>
81-
</ul>
8279
*/
8380
- (void)verifyPhoneNumber:(NSString *)phoneNumber
8481
completion:(nullable FIRVerificationResultCallback)completion
@@ -92,23 +89,21 @@ NS_SWIFT_NAME(PhoneAuthProvider)
9289
by this method until the completion block is executed.
9390
@param completion The callback to be invoked when the verification flow is finished.
9491
@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.
105100
*/
106101
- (void)verifyPhoneNumber:(NSString *)phoneNumber
107102
UIDelegate:(nullable id<FIRAuthUIDelegate>)UIDelegate
108103
completion:(nullable FIRVerificationResultCallback)completion;
109104

110105
/** @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
112107
verification ID and verification code.
113108
114109
@param verificationID The verification ID obtained from invoking
@@ -121,8 +116,8 @@ NS_SWIFT_NAME(PhoneAuthProvider)
121116
verificationCode:(NSString *)verificationCode;
122117

123118
/** @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`.
126121
*/
127122
- (instancetype)init NS_UNAVAILABLE;
128123

0 commit comments

Comments
 (0)