mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-04-23 12:06:47 +08:00
[android] finished refactor of auth() methods, currentUser methods still TODO
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user