Skip to content

Commit f25c7d5

Browse files
committed
Change Auth.backend property to constant
1 parent f492714 commit f25c7d5

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

FirebaseAuth/Sources/Swift/Auth/Auth.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2337,7 +2337,7 @@ extension Auth: AuthInterop {
23372337
/// Auth's backend.
23382338
var requestConfiguration: AuthRequestConfiguration
23392339

2340-
var backend: AuthBackend
2340+
let backend: AuthBackend
23412341

23422342
#if os(iOS)
23432343

FirebaseAuth/Tests/Unit/OAuthProviderTests.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,10 @@ import FirebaseCore
282282
.replacingOccurrences(of: ")", with: "")
283283
FirebaseApp.configure(name: strippedName, options: options)
284284
OAuthProviderTests.auth = Auth.auth(app: FirebaseApp.app(name: strippedName)!)
285-
OAuthProviderTests.auth?.backend = authBackend
285+
OAuthProviderTests.auth = Auth(
286+
app: FirebaseApp.app(name: strippedName)!,
287+
backend: authBackend
288+
)
286289
OAuthProviderTests.auth?.mainBundleUrlTypes =
287290
[["CFBundleURLSchemes": [scheme]]]
288291
}

0 commit comments

Comments
 (0)