2
0
mirror of synced 2025-01-11 22:54:12 +00:00

[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

View File

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