File tree 1 file changed +9
-3
lines changed
packages/auth/ios/RNFBAuth
1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -589,7 +589,10 @@ - (void)invalidate {
589
589
[oAuthProviders setValue: provider forKey: providerID];
590
590
591
591
if (email) {
592
- [provider setCustomParameters: @{@" login_hint" : email}];
592
+ [provider setCustomParameters: @{@" login_hint" : email, @" prompt" : @" select_account" }];
593
+ }
594
+ else {
595
+ [provider setCustomParameters: @{@" prompt" : @" select_account" }];
593
596
}
594
597
595
598
[provider getCredentialWithUIDelegate: nil
@@ -622,7 +625,10 @@ - (void)invalidate {
622
625
[oAuthProviders setValue: provider forKey: providerID];
623
626
624
627
if (email) {
625
- [provider setCustomParameters: @{@" login_hint" : email}];
628
+ [provider setCustomParameters: @{@" login_hint" : email, @" prompt" : @" select_account" }];
629
+ }
630
+ else {
631
+ [provider setCustomParameters: @{@" prompt" : @" select_account" }];
626
632
}
627
633
628
634
[provider getCredentialWithUIDelegate: nil
@@ -1367,7 +1373,7 @@ - (NSDictionary *)getJSError:(NSError *)error {
1367
1373
NSString *sessionKey = [NSString stringWithFormat: @" %@ " , @([resolver.session hash ])];
1368
1374
cachedResolver[sessionKey] = resolver;
1369
1375
}
1370
-
1376
+
1371
1377
NSString *email = [error userInfo ][FIRAuthErrorUserInfoEmailKey];
1372
1378
1373
1379
return @{
You can’t perform that action at this time.
0 commit comments