sabyasachibiswal / angular5-social-login

Social authentication module for Angular 5. Includes Facebook and Google login with AOT compatibility.
40 stars 74 forks source link

authState.toPromise() not working #16

Open codegagan opened 6 years ago

codegagan commented 6 years ago

I am trying to get user value as await auth.authState.toPromise() which is never returning, while subscribe works fine.

codegagan commented 6 years ago

Looks like its because behaviorsubject is being used as observable. Can it be changed to some other type of Subject ?

rami-alloush commented 4 years ago

This is still a problem and seems to be from AngularFire

inclu-cat commented 3 years ago

I've got user value by await auth.authState.pipe(first()).toPromise()