Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Auth] Remove AuthBackend singleton #14006

Merged
merged 13 commits into from
Nov 8, 2024
Prev Previous commit
Next Next commit
Change Auth.backend property to constant
ncooke3 committed Nov 1, 2024

Verified

This commit was signed with the committer’s verified signature.
hediet Henning Dieterichs
commit f25c7d5d226257a4bf8eca29145f806e2780e216
2 changes: 1 addition & 1 deletion FirebaseAuth/Sources/Swift/Auth/Auth.swift
Original file line number Diff line number Diff line change
@@ -2337,7 +2337,7 @@ extension Auth: AuthInterop {
/// Auth's backend.
var requestConfiguration: AuthRequestConfiguration

var backend: AuthBackend
let backend: AuthBackend

#if os(iOS)

5 changes: 4 additions & 1 deletion FirebaseAuth/Tests/Unit/OAuthProviderTests.swift
Original file line number Diff line number Diff line change
@@ -282,7 +282,10 @@ import FirebaseCore
.replacingOccurrences(of: ")", with: "")
FirebaseApp.configure(name: strippedName, options: options)
OAuthProviderTests.auth = Auth.auth(app: FirebaseApp.app(name: strippedName)!)
OAuthProviderTests.auth?.backend = authBackend
OAuthProviderTests.auth = Auth(
app: FirebaseApp.app(name: strippedName)!,
backend: authBackend
)
OAuthProviderTests.auth?.mainBundleUrlTypes =
[["CFBundleURLSchemes": [scheme]]]
}