File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -230,7 +230,9 @@ - (void)showSignInAlertWithEmail:(NSString *)email
230
230
UIAlertAction *cancelAction =
231
231
[UIAlertAction actionWithTitle: [FIRAuthUIStrings cancel ]
232
232
style: UIAlertActionStyleCancel
233
- handler: nil ];
233
+ handler: ^(UIAlertAction * _Nonnull action) {
234
+ [self .authUI signOutWithError: nil ];
235
+ }];
234
236
[alertController addAction: cancelAction];
235
237
[self presentViewController: alertController animated: YES completion: nil ];
236
238
} else {
@@ -241,7 +243,9 @@ - (void)showSignInAlertWithEmail:(NSString *)email
241
243
cancelButtonTitle: [FIRAuthUIStrings cancel ]
242
244
otherButtonTitles: provider.signInLabel, nil ];
243
245
FIRAuthUIAlertViewDelegate *delegate =
244
- [[FIRAuthUIAlertViewDelegate alloc ] initWithCancelHandler: nil otherHandlers: @[ handler ]];
246
+ [[FIRAuthUIAlertViewDelegate alloc ] initWithCancelHandler: ^{
247
+ [self .authUI signOutWithError: nil ];
248
+ } otherHandlers: @[ handler ]];
245
249
alertView.delegate = delegate;
246
250
[alertView show ];
247
251
}
You can’t perform that action at this time.
0 commit comments