-
Notifications
You must be signed in to change notification settings - Fork 927
Mfa totp demoapp #6629
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
Mfa totp demoapp #6629
Conversation
|
b89fb5c
to
cfc7493
Compare
Size Report 1Affected Products
Test Logs |
Size Analysis Report 1Affected Products
Test Logs |
static assertionForEnrollment(secret: TotpSecret, oneTimePassword: string): TotpMultiFactorAssertion; | ||
static assertionForSignIn(enrollmentId: string, oneTimePassword: string): TotpMultiFactorAssertion; | ||
// Warning: (ae-forgotten-export) The symbol "FactorId" needs to be exported by the entry point index.d.ts | ||
static FACTOR_ID: FactorId_2; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FactorId_2
is fishy, the public type might be using the wrong enum
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This uses FactorId from public_types - https://github.com/firebase/firebase-js-sdk/blob/mfa-totp/packages/auth/src/mfa/assertions/totp.ts#L21, which is using the enum type -
export const enum FactorId { |
This looks right to me.. maybe we are running into something like - microsoft/rushstack#3581
The other option is to define FACTOR_ID as string in
static FACTOR_ID = FactorId.TOTP; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Synced offline that we will leave this as-is for now and switch to String if we see the need for it.
…th version. The QR code image is generated using the qrserver api at https://goqr.me/api/doc/
cfc7493
to
d73dfbb
Compare
* Export TOTP symbols to be picked up by demo app. * Update the demo app to support TOTP enrollment, use local firebase auth version. The QR code image is generated using the qrserver api at https://goqr.me/api/doc/
* Export TOTP symbols to be picked up by demo app. * Update the demo app to support TOTP enrollment, use local firebase auth version. The QR code image is generated using the qrserver api at https://goqr.me/api/doc/
Exported TOTP objects and updated the demo app to support TOTP MFA enrollment.
Modified the demo app package.json to pick up auth changes from HEAD.