samdjstevens / java-totp

A java library for implementing Time-based One Time Passwords for Multi-Factor Authentication.
MIT License
422 stars 103 forks source link

Storing 2FA status #36

Closed MaximumPotato closed 3 years ago

MaximumPotato commented 3 years ago

Howdy!

I understand that I'm kind of abusing the issue system by using it to ask this question, however I am at my wits end with this and need to be pointed in the right direction. Maybe you can help.

I'm using your Library to implement 2FA in an Android app, alongside Firebase Auth as the primary authentication method. When I start up my application, checking if the user is currently logged in is quite easy. However, I can't figure out how I might save the fact that the user has passed the TOTP check since they logged in.

This is my first time trying to implement user authentication in a project if that wasn't immediately obvious. I've been trying to come up with my own solution to this for a few days, but I'm at the point where I need to ask for help, and Stack Overflow hasn't been able to supply any.

samdjstevens commented 3 years ago

Hey - sorry I've not replied to this sooner. I'm afraid I'm not very familair with Android development or Firebase, and the storing of the user state is out of scope of this library so I'm going to close this issue - but I hope that you have managed to solve the problem already!