Q:

AngularFire 6... How do I set languageCode on afAuth?

I've upgraded my AngularFire app from 5 to 6. 
On the previous version, setting the languageCode for the Authentication was simple: Set languageCode = "es";
this.afAuth.auth.languageCode = "es";

On AngularFire 6, afAuth directly exposes languageCode, but instead of accepting a string, it expects a promise. 
I'm honestly a bit lost here (I'm still learning Angular and Typescript), and there's no documentation on how to set up languageCode on AF6....
Any help?
Thanks!

A:

Found the solution. It was pretty simple actually, just return the string as a promise.
This is due PromiseProxy was added in this new version of AngularFire.
from
this.afAuth.auth.languageCode = "es";

to
this.afAuth.languageCode = new Promise(() => 'es');

