#How can I get the observables from angularfire auth ?

1 messages · Page 1 of 1 (latest)

wicked bluff
#

Followed this guide from the docs but they are out of date:
https://github.com/angular/angularfire/blob/master/docs/auth.md#authentication

export class NavigatorComponent{
  private auth: Auth = inject(Auth);
  user$ = user(this.auth);
  
  constructor(){
    
    this.user$ = user(this.auth); // error here pointing at this.auth
  }
  Property 'authStateReady' is missing in type 'import("@angular/fire/auth/auth").Auth' but required in type 'import("@firebase/auth/dist/auth-public").Auth'.ts(2345)
auth-public.d.ts(397, 5): 'authStateReady' is declared here.```

Any pointers or up to date tutorial/sample code?
Thanks
GitHub

Angular + Firebase = ❤️. Contribute to angular/angularfire development by creating an account on GitHub.

golden sable
#

I think the doc is up-to-date, but that you have a version of firebase that conflicts with the one that your angularfire version expects. Check your dependencies.