[android][auth] fix unlink method - missing appName / targeted app instance after master merge

This commit is contained in:
Salakar 2017-07-17 18:23:57 +01:00
parent 813b91f5ad
commit a0c42c7d39
1 changed files with 4 additions and 2 deletions

View File

@ -727,8 +727,10 @@ class RNFirebaseAuth extends ReactContextBaseJavaModule {
* @param promise * @param promise
*/ */
@ReactMethod @ReactMethod
public void unlink(final String providerId, final Promise promise) { public void unlink(final String appName, final String providerId, final Promise promise) {
FirebaseUser user = mAuth.getCurrentUser(); FirebaseApp firebaseApp = FirebaseApp.getInstance(appName);
FirebaseAuth firebaseAuth = FirebaseAuth.getInstance(firebaseApp);
FirebaseUser user = firebaseAuth.getCurrentUser();
Log.d(TAG, "unlink"); Log.d(TAG, "unlink");
if (user != null) { if (user != null) {