2

This is due to Keychain in iOS which saves the Auth state even after uninstalling the app.

How can I delete the keychain Auth state in react-native or prevent this from happening?

I’m using react-native-Firebase v6

Help would be very much appreciated.

yashatreya
  • 782
  • 1
  • 9
  • 32

1 Answers1

0

hope this help someone!
i found this response in github and just add

[FIRApp configure];
 NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
 if (![defaults boolForKey:@"notFirstRun"]) {
 [defaults setBool:YES forKey:@"notFirstRun"];
 [defaults synchronize];
 [[FIRAuth auth] signOut:NULL];
}

in my AppDelegate.m and my issue fixed.

amirhosein
  • 844
  • 9
  • 24