firebase / FirebaseUI-Android

Optimized UI components for Firebase
https://firebaseopensource.com/projects/firebase/firebaseui-android/
Apache License 2.0
4.61k stars 1.83k forks source link

com.google.firebase.auth.FirebaseAuthRecentLoginRequiredException: This operation is sensitive and requires recent authentication. Log in again before retrying this request. #2129

Open RachitTechnology opened 1 year ago

RachitTechnology commented 1 year ago

Welcome to FirebaseUI and thanks for submitting an issue!

Please take a look at open issues, as well as resolved issues, to see if your issue is either already being addressed, or has been solved by someone else.

If not, please feel free to fill in the following info so we can help faster!

Step 1: Are you in the right place?

Yes

Step 2: Describe your environment

Step 3: Describe the problem:

While calling AuthUI.getInstance() .delete(getApplicationContext()) it throws an exception com.google.firebase.auth.FirebaseAuthRecentLoginRequiredException: This operation is sensitive and requires recent authentication. Log in again before retrying this request.

What is proper way to re authenticate user?

Steps to reproduce:

Call - AuthUI.getInstance() .delete(getApplicationContext()) it throws an exception

Observed Results:

task.isSuccessful() returns false with above exception

Expected Results:

A reauthenticate method to check and send user to authenticate in case of above exception

Relevant Code:

  // TODO(you): code here to reproduce the problem