File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
packages/auth/ios/RNFBAuth Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -589,7 +589,10 @@ - (void)invalidate {
589589 [oAuthProviders setValue: provider forKey: providerID];
590590
591591 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" }];
593596 }
594597
595598 [provider getCredentialWithUIDelegate: nil
@@ -622,7 +625,10 @@ - (void)invalidate {
622625 [oAuthProviders setValue: provider forKey: providerID];
623626
624627 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" }];
626632 }
627633
628634 [provider getCredentialWithUIDelegate: nil
@@ -1367,7 +1373,7 @@ - (NSDictionary *)getJSError:(NSError *)error {
13671373 NSString *sessionKey = [NSString stringWithFormat: @" %@ " , @([resolver.session hash ])];
13681374 cachedResolver[sessionKey] = resolver;
13691375 }
1370-
1376+
13711377 NSString *email = [error userInfo ][FIRAuthErrorUserInfoEmailKey];
13721378
13731379 return @{
You can’t perform that action at this time.
0 commit comments