Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
[Auth] Remove deprecated string-based provider ID APIs
  • Loading branch information
ncooke3 committed Jun 24, 2025
commit 1d8cda000445da541cde23b72c50038755c17d06
5 changes: 5 additions & 0 deletions FirebaseAuth/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# Unreleased
- [removed] **Breaking Change**: Remove deprecated Swift APIs using
`String`-typed `productID`s that were in favor of API that leverages the
`AuthProviderID` enum. Note, this only affects Swift clients.

# 11.15.0
- [fixed] Fixed `Sendable` warnings introduced in the Xcode 26 beta. (#14996)

Expand Down
48 changes: 6 additions & 42 deletions FirebaseAuth/Sources/Swift/AuthProvider/OAuthProvider.swift
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,7 @@ import Foundation
/// - providerID: The provider ID of the IDP for which this auth provider instance will be
/// configured.
/// - Returns: An instance of OAuthProvider corresponding to the specified provider ID.
#if !FIREBASE_CI
@available(
swift,
deprecated: 0.01,
message: "Use `provider(providerID: AuthProviderID) -> OAuthProvider` instead."
)
#endif // !FIREBASE_CI
@available(swift 1000.0) // Objective-C only API
@objc(providerWithProviderID:) open class func provider(providerID: String) -> OAuthProvider {
return OAuthProvider(providerID: providerID, auth: Auth.auth())
}
Expand All @@ -60,13 +54,7 @@ import Foundation
/// configured.
/// - auth: The auth instance to be associated with the OAuthProvider instance.
/// - Returns: An instance of OAuthProvider corresponding to the specified provider ID.
#if !FIREBASE_CI
@available(
swift,
deprecated: 0.01,
message: "Use `provider(providerID: AuthProviderID, auth: Auth) -> OAuthProvider` instead."
)
#endif // !FIREBASE_CI
@available(swift 1000.0) // Objective-C only API
@objc(providerWithProviderID:auth:) open class func provider(providerID: String,
auth: Auth) -> OAuthProvider {
return OAuthProvider(providerID: providerID, auth: auth)
Expand Down Expand Up @@ -136,13 +124,7 @@ import Foundation
/// - Parameter accessToken: The access token associated with the Auth credential be created, if
/// available.
/// - Returns: An AuthCredential for the specified provider ID, ID token and access token.
#if !FIREBASE_CI
@available(
swift,
deprecated: 0.01,
message: "Use `credential(providerID: AuthProviderID, idToken: String, accessToken: String? = nil) -> OAuthCredential` instead."
)
#endif // !FIREBASE_CI
@available(swift 1000.0) // Objective-C only API
@objc(credentialWithProviderID:IDToken:accessToken:)
public static func credential(withProviderID providerID: String,
idToken: String,
Expand Down Expand Up @@ -173,13 +155,7 @@ import Foundation
/// - Parameter accessToken: The access token associated with the Auth credential be created, if
/// available.
/// - Returns: An AuthCredential for the specified provider ID, ID token and access token.
#if !FIREBASE_CI
@available(
swift,
deprecated: 0.01,
message: "Use `credential(providerID: AuthProviderID, accessToken: String) -> OAuthCredential` instead."
)
#endif // !FIREBASE_CI
@available(swift 1000.0) // Objective-C only API
@objc(credentialWithProviderID:accessToken:)
public static func credential(withProviderID providerID: String,
accessToken: String) -> OAuthCredential {
Expand All @@ -203,13 +179,7 @@ import Foundation
/// - Parameter rawNonce: The raw nonce associated with the Auth credential being created.
/// - Parameter accessToken: The access token associated with the Auth credential be created.
/// - Returns: An AuthCredential for the specified provider ID, ID token and access token.
#if !FIREBASE_CI
@available(
swift,
deprecated: 0.01,
message: "Use `credential(providerID: AuthProviderID, idToken: String, rawNonce: String, accessToken: String? = nil) -> OAuthCredential` instead."
)
#endif // !FIREBASE_CI
@available(swift 1000.0) // Objective-C only API
@objc(credentialWithProviderID:IDToken:rawNonce:accessToken:)
public static func credential(withProviderID providerID: String, idToken: String,
rawNonce: String,
Expand All @@ -228,13 +198,7 @@ import Foundation
/// - Parameter idToken: The IDToken associated with the Auth credential being created.
/// - Parameter rawNonce: The raw nonce associated with the Auth credential being created.
/// - Returns: An AuthCredential.
#if !FIREBASE_CI
@available(
swift,
deprecated: 0.01,
message: "Use `credential(providerID: AuthProviderID, idToken: String, rawNonce: String, accessToken: String? = nil) -> OAuthCredential` instead."
)
#endif // !FIREBASE_CI
@available(swift 1000.0) // Objective-C only API
@objc(credentialWithProviderID:IDToken:rawNonce:)
public static func credential(withProviderID providerID: String, idToken: String,
rawNonce: String) -> OAuthCredential {
Expand Down
Loading