Conversation

mccjul

Description

This PR is to add TOTP feature to auth.

Related issues

#7483

Release Summary

Adds TOTP feature to auth.

Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
    • [ x ] Yes
  • My change supports the following platforms;
    • [ x ] Android
    • [ x ] iOS
  • My change includes tests;
    • e2e tests added or updated in packages/\*\*/e2e
    • jest tests added or updated in packages/\*\*/__tests__
  • [ x ] I have updated TypeScript types that are affected by my change.
  • This is a breaking change;
    • Yes
    • [ x ] No

Test Plan

Currently working on the tests but would like some feedback before I write a ton of tests if the way I wrote it won't be accepted.

Whats left

  • Write e2e test
  • Validate ios implementation is valid

@vercelVercel

The latest updates on your projects. Learn more about Vercel for Git ↗︎

NameStatusPreviewCommentsUpdated (UTC)
react-native-firebase✅ Ready (Inspect)Visit Preview💬 Add feedbackMar 31, 2024 9:11pm

@CLAassistant

CLA assistant check
All committers have signed the CLA.

@mccjulmccjul changed the title Feature TOTP feat(auth): TOTP Mar 31, 2024
@github-actionsGitHub Actions

Hello 👋, this PR has been opened for more than 2 months with no activity on it.

If you think this is a mistake please comment and ping a maintainer to get this merged ASAP! Thanks for contributing!

You have 15 days until this gets closed automatically

@github-actions-actions bot added the Stale label Apr 28, 2024

Choose a reason for hiding this comment

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

I am sorry - I reviewed this but did not submit the review 🤦 - it looks like a good start (especially at the native level, which is usually the most difficult!) but is not consistent with firebase-js-sdk yet so needs a bit of a re-shape on the API we expose

* Enroll TOTP factor. Provide an optional display name that can be shown to the user.
* The method will ensure the user state is reloaded after successfully enrolling a factor.
*/
enrollTotp(verificationCode: string, displayName?: string): Promise<void>;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Interesting - I don't think this is strictly necessary? It is not present in the firebase-js-sdk so we need to change this to make sure we are 100% consistent with them.

What I think we need is to add FactorId.TOTP to the FactorIdMap and package the TOTP information in to the MultiFactorAssertion so we can use it in the enroll API above

Then this API is not needed

@github-actions-actions bot removed the Stale label May 2, 2024
@mikehardymikehardy added plugin: authenticationFirebase AuthenticationKeep Openavoids the stale bottype: enhancementImplements a new FeatureWorkflow: Needs ReviewPending feedback or review from a maintainer.Workflow: Waiting for User ResponseBlocked waiting for user response.and removed Workflow: Needs ReviewPending feedback or review from a maintainer.labels May 2, 2024
@hoongtonghoongtong mentioned this pull request Oct 15, 2024
9 tasks
@aduca98

hey what's needed to get this merged in? happy to help. we have users who have TOTP from our web product enabled and as soon as they get to the app the whole thing just crashes atm without this PR.

Sign up for free to join this conversation on . Already have an account? Sign in to comment
blocked: customer-response Keep Openavoids the stale botplugin: authenticationFirebase Authenticationtype: enhancementImplements a new FeatureWorkflow: Waiting for User ResponseBlocked waiting for user response.
None yet

Successfully merging this pull request may close these issues.