mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-04-24 04:24:52 +08:00
[auth] Some flow types and tidy up
This commit is contained in:
@@ -942,7 +942,7 @@ class RNFirebaseAuth extends ReactContextBaseJavaModule {
|
||||
* @param promise
|
||||
*/
|
||||
@ReactMethod
|
||||
public void link(String appName, String provider, String authToken, String authSecret, final Promise promise) {
|
||||
public void linkWithCredential(String appName, String provider, String authToken, String authSecret, final Promise promise) {
|
||||
FirebaseApp firebaseApp = FirebaseApp.getInstance(appName);
|
||||
FirebaseAuth firebaseAuth = FirebaseAuth.getInstance(firebaseApp);
|
||||
|
||||
@@ -1010,7 +1010,7 @@ class RNFirebaseAuth extends ReactContextBaseJavaModule {
|
||||
}
|
||||
|
||||
/**
|
||||
* reauthenticate
|
||||
* reauthenticateWithCredential
|
||||
*
|
||||
* @param provider
|
||||
* @param authToken
|
||||
@@ -1018,7 +1018,7 @@ class RNFirebaseAuth extends ReactContextBaseJavaModule {
|
||||
* @param promise
|
||||
*/
|
||||
@ReactMethod
|
||||
public void reauthenticate(String appName, String provider, String authToken, String authSecret, final Promise promise) {
|
||||
public void reauthenticateWithCredential(String appName, String provider, String authToken, String authSecret, final Promise promise) {
|
||||
FirebaseApp firebaseApp = FirebaseApp.getInstance(appName);
|
||||
final FirebaseAuth firebaseAuth = FirebaseAuth.getInstance(firebaseApp);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user