verifyCurrentPassword method

Future<void> verifyCurrentPassword(
  1. String email,
  2. String currentPassword
)

Re-authenticate the user with their current password. Throws AuthException if the password is wrong.

Implementation

Future<void> verifyCurrentPassword(
  String email,
  String currentPassword,
) async {
  await _client.auth.signInWithPassword(
    email: email,
    password: currentPassword,
  );
}