[firebase_auth] Is there a plan to support multifactor authentication (so called MFA/2FA)? #2386
-
I found that Google has released multi-factor authentication recently. https://cloud.google.com/identity-platform/docs/web/mfa and thus, I am just wondering if there is a plan to implement this feature soon. I know that there is some sort of workaround solution using 'userClaim', but it would be greater if we can use official way of MFA. |
Beta Was this translation helpful? Give feedback.
Replies: 16 comments 18 replies
-
Hi @fysoul17 |
Beta Was this translation helpful? Give feedback.
-
Hi @TahaTesser Please check the link I provided. In fact, it is supported by Firebase now. It is an example of Firebase. Also, the link you provided was an old answer, if you scroll down to recent reply, it also said Firebase is now supporting MFA only when you enable Identity Provider. Thanks in advance for further support. ;) |
Beta Was this translation helpful? Give feedback.
-
It was released with v7.11.0: https://firebase.google.com/support/release-notes/js#version_7110_-_march_12_2020 😍 |
Beta Was this translation helpful? Give feedback.
-
I see mfa is supported but how do we implement with flutter? I tried to use cloud functions but I don't think it's possible. See below code. I have no way of getting "user" because I can't pass user as a parameter in the cloud function. The way I have called auth.currentUser returns null because I used firebase_auth package. There's no method to get user by UID either so I don't think there's much I can do, right?
|
Beta Was this translation helpful? Give feedback.
-
I've taken a look into this as part of #2582 , we've decided that we'll first get the API stable and then look at introducing MFA. Another potential issue is that iOS support is in beta and the underlying web library wrapper doesn't support it. |
Beta Was this translation helpful? Give feedback.
-
If we were to use the native SDKs for multi-factor, to complement Flutter's Firebase Auth, would that work? https://cloud.google.com/identity-platform/docs/android/mfa Can we transfer some token between native and Flutter to recreate the auth state in the other side? |
Beta Was this translation helpful? Give feedback.
-
Any update about this? It sucks that I can't use Google Identity Platform multifactor auth with my Flutter app when I can easily integrate it with my other project using Angular. |
Beta Was this translation helpful? Give feedback.
-
We're considering making separate platform-specific channels and integrating the firebase android/ios SDKs separately. Not seeing much activity here :( |
Beta Was this translation helpful? Give feedback.
-
Is there any update on this? I really have to implement multifactor auth, and I am using Firebase for the most part of my app. |
Beta Was this translation helpful? Give feedback.
-
I really need multifactor auth in my Flutter app. Did anyone figure out how to do this yet in a different way or is there any update on this? |
Beta Was this translation helpful? Give feedback.
-
This topic seems to be getting pushed down even tho it's a core feature of authentication for security consious applications. As good as any application aimed at mid to enterprise sized organizations that is hosted outside of intranets utilizes 2-factor / MFA auth. |
Beta Was this translation helpful? Give feedback.
-
Hello, Cloudfunction I hope that this helped you guys a bit. |
Beta Was this translation helpful? Give feedback.
-
I created a issue to ask for a update on this feature for there has been no response for some time now. |
Beta Was this translation helpful? Give feedback.
-
Has anyone managed to retrieve real SMS using the HTTP REST approach described by @ManuelWeidijkQict and @htsuruo? Am I missing setup steps that usually would be handled by the Firebase libraries? Thanks for any help and hints! |
Beta Was this translation helpful? Give feedback.
-
It's now supported. You can follow instructions from this blog post: https://invertase.io/blog/flutterfire-mfa-tutorial |
Beta Was this translation helpful? Give feedback.
-
What about non-SMS 2fa? Will that ever be supported? |
Beta Was this translation helpful? Give feedback.
It's now supported. You can follow instructions from this blog post: https://invertase.io/blog/flutterfire-mfa-tutorial