Kumar Saptam
Kumar Saptam
The one with `initializeApp()` is correct because it is the modular way.
Import it in module like this. `import {provideAuth, getAuth} from '@angular/fire/auth';` and then add this into the imports list in aap.module.ts `imports : [ provideAuth(() => getAuth()) ] `
An example of a signInAnonymously method in v7 ``` import { Injectable } from '@angular/core'; import { Auth, signInAnonymously } from '@angular/fire/auth'; import { UserDataService } from '../userData/user-data.service'; @Injectable({ providedIn:...
Here is the full-fledged documentation for your need. https://dev.to/jdgamble555/angular-12-with-firebase-9-49a0
Mods please close this issue it has nothing in it.
Check this pull request it has new docs in that I have added how to use persistence correctly #3174
give a stackblitz example or share the code repo or at least show all the parts of code related to this issue to create it and debug it.
Firebase is now modular so it requires initialization for every module. You have not initialized fireAuth so do it like this. add any of these required lines in your imports...
It is presented in my code please check if your browser is blocking popups it usually happens in modern browsers.
And this is the correct method to invoke the popup in the V9 modular. ```typescript signInWithPopup(this.auth, new GoogleAuthProvider()).then(async (credentials:UserCredential)=>{}) ```