firebase / firebase-js-sdk

Firebase Javascript SDK
https://firebase.google.com/docs/web/setup
Other
4.86k stars 891 forks source link

FR - Remember this device on multi factor auth #7040

Open blairjo opened 1 year ago

blairjo commented 1 year ago

Describe your environment

Describe the problem

Steps to reproduce:

Our apps use Persistence.SESSION level persistence.

When enrolled with multi-factor auth, firebase will return an auth/multi-factor-auth-required error after login to trigger the multi-factor flow. As far as I can see from the docs it will always do this, requiring users to enter an SMS code every time they log in. This could get annoying for the users, as well as becoming quite expensive if you have lots of users.

It would be great if when calling resolveSignIn there was an option to remember a device for a specified period of time (or always) so that firebase does not continue to return the auth/multi-factor-auth-required error.

Are there any plans for this feature?

renkelvin commented 1 year ago

Thanks for filling up this request! This feature is on our radar and the team will discuss and plan accordingly.

blairjo commented 1 year ago

Thanks for the update @renkelvin Are there any rough ideas on when this might be available?

prameshj commented 1 year ago

We are unable to promise a timeline right now, but we have put this feature request on our radar. Thanks!