I am using 'AngularFireAuth' for sign in with Google and I am getting tis error.
Ths is my code written in auth.service.ts:
import { Injectable } from '@angular/core';
import { first } from 'rxjs/operators';
import { AngularFireAuth } from '@angular/fire/compat/auth';
@Injectable({
providedIn: 'root'
})
export class AuthService {
constructor(public afauth: AngularFireAuth) { }
googleSignIn() {
const provider = new this.afauth.GoogleAuthProvider();
return this.oAuthLogin(provider);
}
async getUser() {
return this.afauth.authState.pipe(first()).toPromise();
}
}