Skip to content

Commit 8968fb2

Browse files
SUPERCILEXsamtstern
authored andcommitted
Fix user deletion possibly using wrong Auth instance (#1020)
1 parent 93c3419 commit 8968fb2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

auth/src/main/java/com/firebase/ui/auth/AuthUI.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ public Task<Void> signOut(@NonNull Context context) {
230230
*/
231231
@NonNull
232232
public Task<Void> delete(@NonNull Context context) {
233-
final FirebaseUser currentUser = FirebaseAuth.getInstance().getCurrentUser();
233+
final FirebaseUser currentUser = mAuth.getCurrentUser();
234234
if (currentUser == null) {
235235
return Tasks.forException(new FirebaseAuthInvalidUserException(
236236
String.valueOf(CommonStatusCodes.SIGN_IN_REQUIRED),

0 commit comments

Comments
 (0)