1

I have a simple android Kotlin application using Firebase email and password authentication. The user can reset the password via email without having to log in. The problem is that if that user is logged in on another device(s) with the old password, resetting the password will not log them out even if they restart the app since I have it so that it logs them in automatically if the were logged in before. I need them to be able to log into multiple devices simultaneously, so blocking them from doing so is not a solution.

Is there a way to log out all sessions once password is changed?

I have found a Similar Question for the ios counterpart of Firebase though I do not understand it since I am fairly new to android and have no knowledge of ios among other things.

barryalan2633
  • 610
  • 7
  • 21
  • The solution is exactly the same, as there is no client code involved. You will need a backend and make use of the Firebase Admin SDK. The other question suggests Cloud Functions, but it can be anything you want. – Doug Stevenson Apr 30 '20 at 23:51

0 Answers0