in angular2 / typescript environment, following code firebase documentation errors "emailpasswordauthprovider not exist on type auth".
var credential = firebase.auth.emailpasswordauthprovider.credential(email, password);
https://firebase.google.com/docs/auth/web/anonymous-auth convert anonymous account permanent account
have installed latest firebase typings version: firebase@3.0.5
note other firebase methods working okay , auth object requires open/close brackets e.g.
firebase.auth().createuserwithemailandpassword(email, password);
this bug in typescript definitions. firebase team has been notified , working on fix. in meantime use following workaround:
(<any> firebase.auth.emailauthprovider).credential
Comments
Post a Comment