[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
|
* @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) {
|
||||||
|
|
Loading…
Reference in New Issue