We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Firebase (through Google Identity Platform) supports Multifactor authentication or 2fa.
Currently only phone is available as a second factor.
The native Firebase SDKs support these method but FirebaseX currently doesn't expose the SDK methods required.
Here's an example for iOS SDK https://cloud.google.com/identity-platform/docs/ios/mfa#objective-c_2
To enable that, FirebaseX would need to expose more native Firebase functions to the JS bridge
The pattern for enrollement is:
For example, on iOS we would need those:
- (void)getSessionWithCompletion:(nullable void (^)(FIRMultiFactorSession *_Nullable credential, NSError *_Nullable error))completion; - (void)verifyPhoneNumber:(NSString *)phoneNumber UIDelegate:(nullable id<FIRAuthUIDelegate>)UIDelegate multiFactorSession:(nullable FIRMultiFactorSession *)session completion:(nullable FIRVerificationResultCallback)completion; - (FIRPhoneAuthCredential *)credentialWithVerificationID:(NSString *)verificationID verificationCode:(NSString *)verificationCode; FIRMultiFactorAssertion *assertion = [FIRPhoneMultiFactorGenerator assertionWithCredential:credential]; - (void)enrollWithAssertion:(FIRMultiFactorAssertion *)assertion displayName:(nullable NSString *)displayName completion:(nullable void (^)(NSError *_Nullable error))completion;
I haven't looked into Android SDK but would be similar pattern/apis.
Thank you 🙏
The text was updated successfully, but these errors were encountered:
Merge branch 'GH-714-multifactor-auth' of github.com:dpa99c/cordova-p…
5e857ad
…lugin-firebasex into GH-714-multifactor-auth
Merge branch 'master' into GH-714-multifactor-auth
973d7be
Merge branch 'dev' into GH-714-multifactor-auth
dd7e603
ba428a3
Implemented in v16.0.0
Sorry, something went wrong.
No branches or pull requests
Feature request
Firebase (through Google Identity Platform) supports Multifactor authentication or 2fa.
Currently only phone is available as a second factor.
The native Firebase SDKs support these method but FirebaseX currently doesn't expose the SDK methods required.
Here's an example for iOS SDK https://cloud.google.com/identity-platform/docs/ios/mfa#objective-c_2
To enable that, FirebaseX would need to expose more native Firebase functions to the JS bridge
The pattern for enrollement is:
For example, on iOS we would need those:
I haven't looked into Android SDK but would be similar pattern/apis.
Thank you 🙏
The text was updated successfully, but these errors were encountered: