Skip to content

TotpMultiFactorGenerator not included in React Native bundle #7701

New issue

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

Closed
RichMeeson opened this issue Oct 16, 2023 · 1 comment
Closed

TotpMultiFactorGenerator not included in React Native bundle #7701

RichMeeson opened this issue Oct 16, 2023 · 1 comment

Comments

@RichMeeson
Copy link

RichMeeson commented Oct 16, 2023

Operating System

Mac OS 13.3

Browser Version

Chrome 118.0.5993.70

Firebase SDK Version

10.4.0

Firebase SDK Product:

Auth

Describe your project's tooling

React Native app, metro

Describe the problem

When attempting to configure our app to work with the TOTP authentication flow, we discovered that TotpMultiFactorGenerator was not exported in the React Native bundle. We had previously used this in our web app with the same version of the SDK.

We've found a work around by taking the code we needed from the bundle used on the web and adding it as a patch to @firebase/auth/dist/rn/index-1dd41d18.js using patch-package though obviously this isn't ideal as I imagine this would break upon updating the package.

Steps and code to reproduce issue

Install Firebase SDK in a React Native app and attempt to import TotpMultiFactorGenerator.

@RichMeeson RichMeeson added new A new issue that hasn't be categoirzed as question, bug or feature request question labels Oct 16, 2023
@rizafran rizafran removed the new A new issue that hasn't be categoirzed as question, bug or feature request label Oct 16, 2023
@jbalidiong
Copy link
Contributor

Hi @RichMeeson, thanks for reaching out to us and apologies for the delay. I was able to replicate the behavior. Let me check what we can do for this issue or bring someone here that can provide more context about it. I’ll update this thread if I have any information to share.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants