[ios][auth] fix unlink method - missing appName / targeted app instance after master merge
This commit is contained in:
parent
a0c42c7d39
commit
48570f5510
|
@ -631,8 +631,9 @@ RCT_EXPORT_METHOD(link:(NSString *) appName
|
||||||
@param RCTPromiseRejectBlock reject
|
@param RCTPromiseRejectBlock reject
|
||||||
@return
|
@return
|
||||||
*/
|
*/
|
||||||
RCT_EXPORT_METHOD(unlink:(NSString *)providerId resolver:(RCTPromiseResolveBlock) resolve rejecter:(RCTPromiseRejectBlock) reject) {
|
RCT_EXPORT_METHOD(unlink:(NSString *) appName providerId:(NSString *)providerId resolver:(RCTPromiseResolveBlock) resolve rejecter:(RCTPromiseRejectBlock) reject) {
|
||||||
FIRUser *user = [FIRAuth auth].currentUser;
|
FIRApp *firApp = [FIRApp appNamed:appName];
|
||||||
|
FIRUser *user = [FIRAuth authWithApp:firApp].currentUser;
|
||||||
|
|
||||||
if (user) {
|
if (user) {
|
||||||
[user unlinkFromProvider:providerId completion:^(FIRUser *_Nullable _user, NSError *_Nullable error) {
|
[user unlinkFromProvider:providerId completion:^(FIRUser *_Nullable _user, NSError *_Nullable error) {
|
||||||
|
|
Loading…
Reference in New Issue