Complete EZClientAuth code for the tutorial Domain Driven Authentication.
For simplicity, EZClientAuth is included in the same project as the demo app, but it can also be extracted to its own Framework and imported as a dependency into multiple apps.
By default, the demo app is configured with a MockRemoteAuthProvider.
- Run
pod install
- Open
EZClientAuth.xcworkspace
. Make sure you're not still inEZClientAuth.xcodeproj
because it is not aware of your dependencies. - Uncomment FirebaseRemoteAuthProvider. Uncomment AuthProviderConfiguration.
- Follow the official Google FirebaseAuth documentation for iOS to integrate the Firebase SDK into your project.
NOTE: Recent changes in XCode projects paving the way for SwiftUI mean you should callFirebaseApp.configure
inSceneDelegate
notAppDelegate
as it says in the Google documentation. - Be sure to enable
Email/Password
sign-in in the Authentication tab of your iOS Firebase project. - Sign up a new user. Then sign-in or sign-out as you please!