[auth] Implemented fetchProvidersForEmail

This commit is contained in:
Elliot Hesp
2017-05-25 14:45:03 +01:00
parent c609539747
commit 45f8f4076d
4 changed files with 130 additions and 8 deletions

View File

@@ -156,6 +156,14 @@ export default class Auth extends Base {
return this._interceptUserValue(FirebaseAuth.getCurrentUser());
}
/**
* Returns a list of authentication providers that can be used to sign in a given user (identified by its main email address).
* @return {Promise}
*/
fetchProvidersForEmail(email: string): Promise<Object> {
return FirebaseAuth.fetchProvidersForEmail(email);
}
/**
* Get the currently signed in user
* @return {Promise}