In an Angular2 / TypeScript environment, the following code from Firebase documentation errors with "EmailPasswordAuthProvider Does Not Exist on Type Auth".
var credential = firebase.auth.EmailPasswordAuthProvider.credential(email, password);
this is a bug in the typescript definitions. The Firebase team has been notified and is working on a fix. In the meantime use the following workaround: