[android] finished refactor of auth() methods, currentUser methods still TODO

This commit is contained in:
Salakar
2017-03-15 20:05:09 +00:00
parent 1874189e15
commit a780f9677d
2 changed files with 98 additions and 89 deletions

View File

@@ -146,7 +146,7 @@ export default class Auth extends Base {
* @param {string} email The email to send password reset instructions
*/
sendPasswordResetEmail(email: string): Promise<Object> {
return promisify('sendPasswordResetWithEmail', FirebaseAuth, 'auth/')(email);
return FirebaseAuth.sendPasswordResetEmail(email);
}
/**
@@ -154,7 +154,7 @@ export default class Auth extends Base {
* @return {Promise}
*/
getCurrentUser(): Promise<Object> {
return promisify('getCurrentUser', FirebaseAuth, 'auth/')();
return this._interceptUserValue(FirebaseAuth.getCurrentUser());
}
/**