Skip to content

Fix ToTP typings issue #7179

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

Merged
merged 3 commits into from
Mar 31, 2023
Merged

Fix ToTP typings issue #7179

merged 3 commits into from
Mar 31, 2023

Conversation

hsubox76
Copy link
Contributor

The const enum is internal and not exported with public types, causing an error since it's referenced.

I believe other publicly exported auth classes avoid this by following the pattern here:

static readonly PROVIDER_ID: 'phone' = ProviderId.PHONE;

So I've done the same for TotpMultiFactorGenerator.

Fixes #7174

@changeset-bot
Copy link

changeset-bot bot commented Mar 31, 2023

🦋 Changeset detected

Latest commit: c5513a6

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@firebase/auth Patch
@firebase/auth-compat Patch
firebase Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@hsubox76 hsubox76 marked this pull request as ready for review March 31, 2023 16:33
Copy link
Contributor

@dwyfrequency dwyfrequency left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@prameshj prameshj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Mar 31, 2023

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Mar 31, 2023

@pietroow
Copy link

LGTM

@hsubox76 hsubox76 merged commit bd51cec into master Mar 31, 2023
@hsubox76 hsubox76 deleted the ch-totp-fix branch March 31, 2023 18:13
@google-oss-bot google-oss-bot mentioned this pull request Mar 31, 2023
@firebase firebase locked and limited conversation to collaborators May 1, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
7 participants