Hi guys, I’ve followed this tutorial https://javebratt.com/angularfire2-email-auth/ to enable email auth on the ionic app.
Now I have the following elements in my app.module.ts
const myFireBaseAuthconfig ={
provider: AuthProviders.Password ,
method: AuthMethods.Password
}
and
imports: [
IonicModule.forRoot(MyApp),
AngularFireModule.initializeApp(firebaseConfig,myFireBaseAuthconfig),
AngularFireModule.
],
so now I’d like to add for example Facebook auth. Everything behind the scene like connecting firebase with the Facebook app is done, but my question is about the code.
I know how I could replace the email auth with the Facebook one, by using the following config and making the adequate changes in the auth pages
const myFireBaseFacebookAuthConfig = {
provider: AuthProviders.Facebook,
method: AuthMethods.Popup
}
But how should I edit my app.module.ts to have both ?
Thanks !
EDIT: And happy new year!