Update Email function of FF having issue

Database & APIs

I am using update email function in my app. It sends email and updates in authenticated collection with new mail before user verifies the sent mail. This causes issue such as if someone types wrong email address the authenticated collection is updated with wrong one and auth id (email password login of firebase auth-email) will be different. It should update after verification. I saw one documentation of update email but I think it is not updated by FF team.

https://docs.flutterflow.io/actions/actions/backend-database/firebase-authentication/update-email

What have you tried so far?

I tried some work around to get feedback if email verified or not from firebase auth using codes given by copilot code:

Tried emailverified boolean in authenticated collection but that says true always I do not know why it is used by FF,

import 'package:firebase_auth/firebase_auth.dart';

Future<bool> checkEmailVerified() async {
  try {
    User? user = FirebaseAuth.instance.currentUser;
    if (user != null) {
      await user.reload();
      return user.emailVerified;
    }
  } catch (e) {
    print('Error checking email verification: $e');
    return false;
  }
  return false;
}
Did you check FlutterFlow's Documentation for this topic?
No
2