title: ERROR_REQUIRES_RECENT_LOGIN - Firebase Flutter
body: <p>I'm trying to delete user from Firebase but it returns a <code>PlatformException</code> (Unhandled Exception: PlatformException(ERROR_REQUIRES_RECENT_LOGIN, This operation is sensitive and requires recent authentication. Log in again before retrying this request., null)
  )<br>I've tried <code>reauthenticateWithCredential</code> as well.</p>
  <pre><code> new FlatButton(
                  child: Text(&quot;Delete&quot;),
                  onPressed: () async {
                    try {
                      FirebaseUser user =
                          await FirebaseAuth.instance.currentUser();
                      var credential = EmailAuthProvider.getCredential(
                          email: user.email, password: &quot;Password&quot;);
                      user.reauthenticateWithCredential(credential);
                      user.delete();
                    } on PlatformException catch (e) {
                      print(&quot;///////// ${e.code}&quot;);//This is not working, And should work cause WRONG_PASSSWORD errors.
                    } catch (e) {
                      print(&quot;Deletion error $e&quot;);
                      showInSnackBar(&quot;Something went wrong&quot;);
                    }
                  },
                ),
  </code></pre>