Skip to content

Commit d6bbd60

Browse files
committed
lint changes
1 parent c958c21 commit d6bbd60

File tree

3 files changed

+17
-17
lines changed

3 files changed

+17
-17
lines changed

FirebaseAuth/Sources/Swift/Auth/Auth.swift

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -169,10 +169,11 @@ extension Auth: AuthInterop {
169169

170170
/// Gets the `FirebaseApp` object that this auth object is connected to.
171171
@objc public internal(set) weak var app: FirebaseApp?
172-
172+
173173
/// New R-GCIP v2 + BYO-CIAM initializer.
174174
///
175-
/// This initializer allows to create an `Auth` instance with a specific `tenantConfig` for R-GCIP.
175+
/// This initializer allows to create an `Auth` instance with a specific `tenantConfig` for
176+
/// R-GCIP.
176177
/// - Parameters:
177178
/// - app: The `FirebaseApp` for which to initialize the `Auth` instance.
178179
/// - tenantConfig: The configuration for the tenant, including location and tenant ID.
@@ -189,9 +190,9 @@ extension Auth: AuthInterop {
189190

190191
/// Holds configuration for a R-GCIP tenant.
191192
public struct TenantConfig {
192-
public let location: String /// The location of the tenant.
193-
public let tenantId: String /// The ID of the tenant.
194-
193+
public let location: String /// The location of the tenant.
194+
public let tenantId: String /// The ID of the tenant.
195+
195196
/// Initializes a `TenantConfig` instance.
196197
/// - Parameters:
197198
/// - location: The location of the tenant, defaults to "prod-global".
@@ -201,15 +202,15 @@ extension Auth: AuthInterop {
201202
self.tenantId = tenantId
202203
}
203204
}
204-
205+
205206
/// Holds a Firebase ID token and its expiration.
206207
public struct AuthExchangeToken {
207-
public let token: String
208-
public let expirationDate: Date?
209-
init(token: String, expirationDate: Date?) {
210-
self.token = token
211-
self.expirationDate = expirationDate
212-
}
208+
public let token: String
209+
public let expirationDate: Date?
210+
init(token: String, expirationDate: Date?) {
211+
self.token = token
212+
self.expirationDate = expirationDate
213+
}
213214
}
214215

215216
/// Synchronously gets the cached current user, or null if there is none.
@@ -2470,7 +2471,6 @@ extension Auth: AuthInterop {
24702471

24712472
@available(iOS 13, *)
24722473
public extension Auth {
2473-
24742474
/// Exchanges a third-party OIDC token for a Firebase STS token.
24752475
///
24762476
/// Requires the `Auth` instance to be configured with a `TenantConfig` for R-GCIP.

FirebaseAuth/Sources/Swift/Backend/AuthRequestConfiguration.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ final class AuthRequestConfiguration {
4343

4444
/// If set, the local emulator host and port to point to instead of the remote backend.
4545
var emulatorHostAndPort: String?
46-
46+
4747
/// R-GCIP region, set once during Auth init.
4848
var location: String?
4949

@@ -61,7 +61,7 @@ final class AuthRequestConfiguration {
6161
self.auth = auth
6262
self.heartbeatLogger = heartbeatLogger
6363
self.appCheck = appCheck
64-
self.location = tenantConfig.location
65-
self.tenantId = tenantConfig.tenantId
64+
location = tenantConfig.location
65+
tenantId = tenantConfig.tenantId
6666
}
6767
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ struct ExchangeTokenRequest: AuthRPCRequest {
7070
let path = "/v2/projects/\(project)/locations/\(region)" +
7171
"/tenants/\(tenant)/idpConfigs/\(idpConfigID):exchangeOidcToken"
7272
guard let url = URL(string: "https://\(host)\(path)?key=\(config.apiKey)") else {
73-
fatalError("Failed to create URL for exchangeOidcToken")
73+
fatalError("Failed to create URL for exchangeOidcToken")
7474
}
7575
return url
7676
}

0 commit comments

Comments
 (0)