Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 1.72 KB

README.md

File metadata and controls

17 lines (12 loc) · 1.72 KB

EZClientAuth Example App

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.

How to Configure Firebase Auth as a RemoteAuthProvider

  1. Run pod install
  2. Open EZClientAuth.xcworkspace. Make sure you're not still in EZClientAuth.xcodeproj because it is not aware of your dependencies.
  3. Uncomment FirebaseRemoteAuthProvider. Uncomment AuthProviderConfiguration.
  4. 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 call FirebaseApp.configure in SceneDelegate not AppDelegate as it says in the Google documentation.
  5. Be sure to enable Email/Password sign-in in the Authentication tab of your iOS Firebase project.
  6. Sign up a new user. Then sign-in or sign-out as you please!