mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-01-12 22:50:20 +08:00
[auth][js] remove deprecated method fetchProvidersForEmail
This commit is contained in:
@@ -502,18 +502,6 @@ export default class Auth extends ModuleBase {
|
||||
return getNativeModule(this).checkActionCode(code);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a list of authentication providers that can be used to sign in a given user (identified by its main email address).
|
||||
* @return {Promise}
|
||||
* @Deprecated
|
||||
*/
|
||||
fetchProvidersForEmail(email: string): Promise<string[]> {
|
||||
console.warn(
|
||||
'Deprecated firebase.auth().fetchProvidersForEmail in favor of firebase.auth().fetchSignInMethodsForEmail()'
|
||||
);
|
||||
return getNativeModule(this).fetchSignInMethodsForEmail(email);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a list of authentication methods that can be used to sign in a given user (identified by its main email address).
|
||||
* @return {Promise}
|
||||
|
||||
Reference in New Issue
Block a user