I am using Apple sign in to login users to my app and then authenticate on firebase. Now sometimes users do not share their email in which case Apple provides a fictious email. After sign in am storing the emails in a database by verifying them first with firebase. I update the fictious email with a real one first on firebase and then send verification email. After updating the primary email on firebase, can the user loggin again with Apple given that Apple will still provide the old fictious email.
FirebaseUser firebaseUser = await FirebaseAuth.instance.currentUser();
await firebaseUser.updateEmail(email);
await firebaseUser.sendEmailVerification();