reAuthenticationWithCredential method

Future<UserCredential?> reAuthenticationWithCredential(
  1. AuthCredential credential
)

Implementation

Future<UserCredential?> reAuthenticationWithCredential(
    AuthCredential credential) async {
  if (auth.currentUser == null) return null;
  final userCredential =
      await auth.currentUser!.reauthenticateWithCredential(credential);
  return userCredential;
}