Skip to content

Commit a9503fd

Browse files
authored
[Auth] Remove AuthErrorCodes '.dynamicLinkNotActivated' & '.invalidDynamicLinkDomain' (#15042)
1 parent e6ae16c commit a9503fd

File tree

5 files changed

+5
-25
lines changed

5 files changed

+5
-25
lines changed

FirebaseAuth/CHANGELOG.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# Unreleased
2-
- [removed] **Breaking Change**: Removed
3-
`ActionCodeSettings.dynamicLinkDomain`.
2+
- [removed] **Breaking Change**: Removed the following Dynamic Links related
3+
APIs:
4+
- `ActionCodeSettings.dynamicLinkDomain`
5+
- `AuthErrorCode.dynamicLinkNotActivated`
6+
- `AuthErrorCode.invalidDynamicLinkDomain`
47
- [removed] **Breaking Change**: Remove deprecated Swift APIs using
58
`String`-typed `productID`s that were in favor of API that leverages the
69
`AuthProviderID` enum. Note, this only affects Swift clients.

FirebaseAuth/Sources/Swift/Utilities/AuthErrorUtils.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -366,10 +366,6 @@ class AuthErrorUtils {
366366
error(code: .invalidProviderID, message: message)
367367
}
368368

369-
static func invalidDynamicLinkDomainError(message: String?) -> Error {
370-
error(code: .invalidDynamicLinkDomain, message: message)
371-
}
372-
373369
static func invalidHostingLinkDomainError(message: String?) -> Error {
374370
error(code: .invalidHostingLinkDomain, message: message)
375371
}

FirebaseAuth/Sources/Swift/Utilities/AuthErrors.swift

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -240,9 +240,6 @@ import Foundation
240240
/// user was provided.
241241
case nullUser = 17067
242242

243-
/// Indicates that a Firebase Dynamic Link is not activated.
244-
case dynamicLinkNotActivated = 17068
245-
246243
/// Represents the error code for when the given provider id for a web operation is invalid.
247244
case invalidProviderID = 17071
248245

@@ -254,10 +251,6 @@ import Foundation
254251
/// ID for an operation that does not support multi-tenancy.
255252
case unsupportedTenantOperation = 17073
256253

257-
/// Indicates that the Firebase Dynamic Link domain used is either not configured or is
258-
/// unauthorized for the current project.
259-
case invalidDynamicLinkDomain = 17074
260-
261254
/// Indicates that the provided Firebase Hosting Link domain is not owned by the current project.
262255
case invalidHostingLinkDomain = 17214
263256

@@ -469,8 +462,6 @@ import Foundation
469462
return kErrorNullUser
470463
case .invalidProviderID:
471464
return kErrorInvalidProviderID
472-
case .invalidDynamicLinkDomain:
473-
return kErrorInvalidDynamicLinkDomain
474465
case .invalidHostingLinkDomain:
475466
return kErrorInvalidHostingLinkDomain
476467
case .webInternalError:
@@ -505,8 +496,6 @@ import Foundation
505496
return FIRAuthErrorMessageUnsupportedFirstFactor
506497
case .emailChangeNeedsVerification:
507498
return FIRAuthErrorMessageEmailChangeNeedsVerification
508-
case .dynamicLinkNotActivated:
509-
return kErrorDynamicLinkNotActivated
510499
case .rejectedCredential:
511500
return kErrorRejectedCredential
512501
case .missingOrInvalidNonce:
@@ -664,8 +653,6 @@ import Foundation
664653
return "ERROR_NULL_USER"
665654
case .invalidProviderID:
666655
return "ERROR_INVALID_PROVIDER_ID"
667-
case .invalidDynamicLinkDomain:
668-
return "ERROR_INVALID_DYNAMIC_LINK_DOMAIN"
669656
case .invalidHostingLinkDomain:
670657
return "ERROR_INVALID_HOSTING_LINK_DOMAIN"
671658
case .webInternalError:
@@ -700,8 +687,6 @@ import Foundation
700687
return "ERROR_UNSUPPORTED_FIRST_FACTOR"
701688
case .emailChangeNeedsVerification:
702689
return "ERROR_EMAIL_CHANGE_NEEDS_VERIFICATION"
703-
case .dynamicLinkNotActivated:
704-
return "ERROR_DYNAMIC_LINK_NOT_ACTIVATED"
705690
case .rejectedCredential:
706691
return "ERROR_REJECTED_CREDENTIAL"
707692
case .missingOrInvalidNonce:

FirebaseAuth/Tests/Unit/ObjCAPITests.m

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,11 +275,9 @@ - (void)FIRAuthErrors_h {
275275
c = FIRAuthErrorCodeWebSignInUserInteractionFailure;
276276
c = FIRAuthErrorCodeLocalPlayerNotAuthenticated;
277277
c = FIRAuthErrorCodeNullUser;
278-
c = FIRAuthErrorCodeDynamicLinkNotActivated;
279278
c = FIRAuthErrorCodeInvalidProviderID;
280279
c = FIRAuthErrorCodeTenantIDMismatch;
281280
c = FIRAuthErrorCodeUnsupportedTenantOperation;
282-
c = FIRAuthErrorCodeInvalidDynamicLinkDomain;
283281
c = FIRAuthErrorCodeInvalidHostingLinkDomain;
284282
c = FIRAuthErrorCodeRejectedCredential;
285283
c = FIRAuthErrorCodeGameKitNotLinked;

FirebaseAuth/Tests/Unit/SwiftAPI.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,11 +273,9 @@ class AuthAPI_hOnlyTests: XCTestCase {
273273
_ = AuthErrorCode.webSignInUserInteractionFailure
274274
_ = AuthErrorCode.localPlayerNotAuthenticated
275275
_ = AuthErrorCode.nullUser
276-
_ = AuthErrorCode.dynamicLinkNotActivated
277276
_ = AuthErrorCode.invalidProviderID
278277
_ = AuthErrorCode.tenantIDMismatch
279278
_ = AuthErrorCode.unsupportedTenantOperation
280-
_ = AuthErrorCode.invalidDynamicLinkDomain
281279
_ = AuthErrorCode.invalidHostingLinkDomain
282280
_ = AuthErrorCode.rejectedCredential
283281
_ = AuthErrorCode.gameKitNotLinked

0 commit comments

Comments
 (0)