[auth][types] Fix incorrect return type for createUserAndRetrieveDataWithEmailAndPassword #862

This commit is contained in:
Chris Bianca 2018-03-07 14:33:16 +00:00
parent 8e7c202846
commit a6734fa439
1 changed files with 1 additions and 1 deletions

View File

@ -251,7 +251,7 @@ export default class Auth extends ModuleBase {
createUserAndRetrieveDataWithEmailAndPassword(
email: string,
password: string
): Promise<User> {
): Promise<UserCredential> {
return getNativeModule(this)
.createUserAndRetrieveDataWithEmailAndPassword(email, password)
.then(userCredential => this._setUserCredential(userCredential));