Add FirebaseAuth support to a Swift application through SwiftfulAuthenticating framework.
See documentation in the parent repo: https://github.com/SwiftfulThinking/SwiftfulAuthenticating
// Example
#if DEBUG
let authManager = AuthManager(service: MockAuthService(user: nil))
#else
let authManager = AuthManager(service: FirebaseAuthService())
#endif
let uid = authManager.auth.uid
let uid = try authManager.getAuthId()
try await authManager.signInAnonymous()
try await authManager.signInApple()
try await authManager.signInGoogle(GIDClientID: String)
try await 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/SwiftfulFirebaseAuth/edit/main/README.md
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/SwiftfulFirebaseAuth/edit/main/README.md