[android][auth] fix unlink method - missing appName / targeted app instance after master merge
This commit is contained in:
parent
813b91f5ad
commit
a0c42c7d39
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue