Add Firebase Auth support to a Swift application through the SwiftfulAuthenticating framework.
Details (Click to expand)
Add SwiftfulAuthenticatingFirebase to your project.
https://github.com/SwiftfulThinking/SwiftfulAuthenticatingFirebase.git
Import the package.
import SwiftfulAuthenticatingFirebaseConfigure AuthManager with FirebaseAuthService:
#if DEBUG
let authManager = AuthManager(service: MockAuthService(user: nil), logger: logManager)
#else
let authManager = AuthManager(service: FirebaseAuthService(), logger: logManager)
#endiflet uid = authManager.auth?.uid
let uid = try authManager.getAuthId()
try await authManager.signInAnonymously()
try await authManager.signInApple()
try await authManager.signInGoogle(GIDClientID: clientId)
try authManager.signOut()
try await authManager.deleteAccount()Details (Click to expand)
Firebase docs: https://firebase.google.com/docs/auth/ios/apple
- Firebase Console -> Authentication -> Sign-in method -> Add new provider
Parent repo: https://github.com/SwiftfulThinking/SwiftfulAuthenticating
Details (Click to expand)
Firebase docs: https://firebase.google.com/docs/auth/ios/google-signin
- Firebase Console -> Authentication -> Sign-in method -> Add new provider
Parent repo: https://github.com/SwiftfulThinking/SwiftfulAuthenticating
This package is used via SwiftfulAuthenticating. See the parent package's .claude/swiftful-authenticating-rules.md for usage guidelines and integration advice for projects using Claude Code.
- iOS 17.0+
- macOS 14.0+
SwiftfulAuthenticatingFirebase is available under the MIT license.