Skip to content

Commit eb9d6be

Browse files
authored
[Docs] Fix DocC warnings in FirebaseAuth (#14032)
1 parent dbbf221 commit eb9d6be

File tree

6 files changed

+17
-15
lines changed

6 files changed

+17
-15
lines changed

FirebaseAuth/Sources/Swift/Auth/Auth.swift

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,6 @@ extension Auth: AuthInterop {
252252

253253
/// Sets the `currentUser` on the receiver to the provided user object.
254254
/// - Parameter user: The user object to be set as the current user of the calling Auth instance.
255-
/// - Parameter completion: Optionally; a block invoked after the user of the calling Auth
256-
/// instance has been updated or an error was encountered.
257255
@available(iOS 13, tvOS 13, macOS 10.15, macCatalyst 13, watchOS 7, *)
258256
open func updateCurrentUser(_ user: User) async throws {
259257
return try await withCheckedThrowingContinuation { continuation in
@@ -1430,6 +1428,7 @@ extension Auth: AuthInterop {
14301428
}
14311429

14321430
/// Revoke the users token with authorization code.
1431+
/// - Parameter authorizationCode: The authorization code used to perform the revocation.
14331432
/// - Parameter completion: (Optional) the block invoked when the request to revoke the token is
14341433
/// complete, or fails. Invoked asynchronously on the main thread in the future.
14351434
@objc open func revokeToken(withAuthorizationCode authorizationCode: String,
@@ -1450,8 +1449,7 @@ extension Auth: AuthInterop {
14501449
}
14511450

14521451
/// Revoke the users token with authorization code.
1453-
/// - Parameter completion: (Optional) the block invoked when the request to revoke the token is
1454-
/// complete, or fails. Invoked asynchronously on the main thread in the future.
1452+
/// - Parameter authorizationCode: The authorization code used to perform the revocation.
14551453
@available(iOS 13, tvOS 13, macOS 10.15, macCatalyst 13, watchOS 7, *)
14561454
open func revokeToken(withAuthorizationCode authorizationCode: String) async throws {
14571455
return try await withCheckedThrowingContinuation { continuation in

FirebaseAuth/Sources/Swift/AuthProvider/FederatedAuthProvider.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ import Foundation
2222
/// Used to obtain an auth credential via a mobile web flow.
2323
/// This method is available on iOS only.
2424
/// - Parameter uiDelegate: An optional UI delegate used to present the mobile web flow.
25+
/// - Parameter completionHandler: Optionally; a block which is invoked
26+
/// asynchronously on the main thread when the mobile web flow is
27+
/// completed.
2528
@available(iOS 13, tvOS 13, macOS 10.15, watchOS 8, *)
2629
@objc(getCredentialWithUIDelegate:completion:)
2730
func credential(with uiDelegate: AuthUIDelegate?) async throws -> AuthCredential

FirebaseAuth/Sources/Swift/AuthProvider/OAuthProvider.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ import Foundation
8686
/// - Parameter providerID: The provider ID of the IDP for which this auth provider instance will
8787
/// be configured.
8888
/// - Parameter auth: The auth instance to be associated with the OAuthProvider instance.
89-
/// - Returns: An instance of OAuthProvider corresponding to the specified provider ID.
9089
public init(providerID: String, auth: Auth = Auth.auth()) {
9190
if auth.requestConfiguration.emulatorHostAndPort == nil {
9291
if providerID == FacebookAuthProvider.id {
@@ -126,7 +125,6 @@ import Foundation
126125
/// - Parameter providerID: The provider ID of the IDP for which this auth provider instance will
127126
/// be configured.
128127
/// - Parameter auth: The auth instance to be associated with the OAuthProvider instance.
129-
/// - Returns: An instance of OAuthProvider corresponding to the specified provider ID.
130128
public convenience init(providerID: AuthProviderID, auth: Auth = Auth.auth()) {
131129
self.init(providerID: providerID.rawValue, auth: auth)
132130
}
@@ -339,6 +337,9 @@ import Foundation
339337
/// Used to obtain an auth credential via a mobile web flow.
340338
/// This method is available on iOS only.
341339
/// - Parameter uiDelegate: An optional UI delegate used to present the mobile web flow.
340+
/// - Parameter completionHandler: Optionally; a block which is invoked
341+
/// asynchronously on the main thread when the mobile web flow is
342+
/// completed.
342343
@available(iOS 13, tvOS 13, macOS 10.15, watchOS 8, *)
343344
@objc(getCredentialWithUIDelegate:completion:)
344345
@MainActor

FirebaseAuth/Sources/Swift/MultiFactor/MultiFactor.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,6 @@ import Foundation
172172
/// - Parameter assertion: The `MultiFactorAssertion`.
173173
/// - Parameter displayName: An optional display name associated with the multi factor to
174174
/// enroll.
175-
/// - Parameter completion: The block invoked when the request is complete, or fails.
176175
@available(iOS 13, tvOS 13, macOS 10.15, macCatalyst 13, watchOS 7, *)
177176
open func enroll(with assertion: MultiFactorAssertion, displayName: String?) async throws {
178177
return try await withCheckedThrowingContinuation { continuation in
@@ -187,6 +186,7 @@ import Foundation
187186
}
188187

189188
/// Unenroll the given multi factor.
189+
/// - Parameter factorInfo: The second factor instance to unenroll.
190190
/// - Parameter completion: The block invoked when the request to send the verification email is
191191
/// complete, or fails.
192192
@objc(unenrollWithInfo:completion:)
@@ -202,6 +202,8 @@ import Foundation
202202
}
203203

204204
/// Unenroll the given multi factor.
205+
/// - Parameter factorUID: The unique identifier corresponding to the
206+
/// second factor being unenrolled.
205207
/// - Parameter completion: The block invoked when the request to send the verification email is
206208
/// complete, or fails.
207209
@objc(unenrollWithFactorUID:completion:)

FirebaseAuth/Sources/Swift/MultiFactor/MultiFactorResolver.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ import Foundation
3434
@objc public let auth: Auth
3535

3636
/// A helper function to help users complete sign in with a second factor using a
37-
/// `MultiFactorAssertion` confirming the user successfully completed the second factor
38-
/// challenge.
37+
/// - Parameter assertion: The assertion confirming the user successfully
38+
/// completed the second factor challenge.
3939
/// - Parameter completion: The block invoked when the request is complete, or fails.
4040
@objc(resolveSignInWithAssertion:completion:)
4141
open func resolveSignIn(with assertion: MultiFactorAssertion,
@@ -90,8 +90,8 @@ import Foundation
9090
}
9191

9292
/// A helper function to help users complete sign in with a second factor using a
93-
/// `MultiFactorAssertion` confirming the user successfully completed the second factor
94-
/// challenge.
93+
/// - Parameter assertion: The assertion confirming the user successfully
94+
/// completed the second factor challenge.
9595
@available(iOS 13, tvOS 13, macOS 10.15, macCatalyst 13, watchOS 7, *)
9696
open func resolveSignIn(with assertion: MultiFactorAssertion) async throws -> AuthDataResult {
9797
return try await withCheckedThrowingContinuation { continuation in

FirebaseAuth/Sources/Swift/User/User.swift

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ extension User: NSSecureCoding {}
251251
/// sensitive operation that requires a recent login from the user. This error indicates
252252
/// the user has not signed in recently enough. To resolve, reauthenticate the user by
253253
/// calling `reauthenticate(with:)`.
254-
/// - Parameter phoneNumberCredential: The new phone number credential corresponding to the
254+
/// - Parameter credential: The new phone number credential corresponding to the
255255
/// phone number to be added to the Firebase account, if a phone number is already linked to the
256256
/// account this new phone number will replace it.
257257
@available(iOS 13, tvOS 13, macOS 10.15, macCatalyst 13, watchOS 7, *)
@@ -766,8 +766,6 @@ extension User: NSSecureCoding {}
766766
/// - Parameter uiDelegate: Optionally an instance of a class conforming to the `AuthUIDelegate`
767767
/// protocol used for presenting the web context. If nil, a default `AuthUIDelegate`
768768
/// will be used.
769-
/// - Parameter completion: Optionally; a block which is invoked when the link flow finishes, or
770-
/// is canceled. Invoked asynchronously on the main thread in the future.
771769
/// - Returns: An AuthDataResult.
772770
@available(iOS 13, tvOS 13, macOS 10.15, macCatalyst 13, watchOS 7, *)
773771
@discardableResult
@@ -1028,7 +1026,7 @@ extension User: NSSecureCoding {}
10281026
}
10291027

10301028
/// Send an email to verify the ownership of the account then update to the new email.
1031-
/// - Parameter email: The email to be updated to.
1029+
/// - Parameter newEmail: The email to be updated to.
10321030
/// - Parameter actionCodeSettings: An `ActionCodeSettings` object containing settings related to
10331031
/// handling action codes.
10341032
@available(iOS 13, tvOS 13, macOS 10.15, macCatalyst 13, watchOS 7, *)

0 commit comments

Comments
 (0)