Skip to content

Commit a42c578

Browse files
committed
lint fixes to pass checks
1 parent 859ec86 commit a42c578

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

FirebaseAuth/Sources/Swift/Auth/Auth.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2431,6 +2431,7 @@ extension Auth: AuthInterop {
24312431
}
24322432

24332433
// MARK: Regionalized auth
2434+
24342435
@available(iOS 13, tvOS 13, macOS 10.15, macCatalyst 13, watchOS 7, *)
24352436
public extension Auth {
24362437
/// Gets the Auth object for a `FirebaseApp` configured for a specific Regional Google Cloud
@@ -2463,7 +2464,7 @@ public extension Auth {
24632464
self.tenantId = tenantId
24642465
}
24652466
}
2466-
2467+
24672468
/// Represents the result of a successful OIDC token exchange, containing a Firebase ID token
24682469
/// and its expiration.
24692470
struct FirebaseToken: Sendable {
@@ -2477,7 +2478,7 @@ public extension Auth {
24772478
self.expirationDate = expirationDate
24782479
}
24792480
}
2480-
2481+
24812482
/// Exchanges a third-party OIDC token for a Firebase ID token.
24822483
///
24832484
/// This method is used for Bring Your Own CIAM (BYO-CIAM) in Regionalized GCIP (R-GCIP),

FirebaseAuth/Sources/Swift/Backend/RPC/ExchangeTokenResponse.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ struct ExchangeTokenResponse: AuthRPCResponse {
4242
guard let token = dictionary["accessToken"] as? String else {
4343
throw AuthErrorUtils.unexpectedResponse(deserializedResponse: dictionary)
4444
}
45-
self.firebaseToken = token
45+
firebaseToken = token
4646
guard let expiresInString = dictionary["expiresIn"] as? String,
4747
let expiresInInterval = TimeInterval(expiresInString) else {
4848
throw AuthErrorUtils.unexpectedResponse(deserializedResponse: dictionary)
4949
}
50-
self.expiresIn = expiresInInterval
51-
self.expirationDate = Date().addingTimeInterval(expiresIn)
50+
expiresIn = expiresInInterval
51+
expirationDate = Date().addingTimeInterval(expiresIn)
5252
}
5353
}

0 commit comments

Comments
 (0)