Skip to content

totp unenroll documentation is wrong #7642

@marcusx2

Description

@marcusx2

Operating System

macOS

Browser Version

Safari 16.5.2

Firebase SDK Version

10.4.0

Firebase SDK Product:

Auth

Describe your project's tooling

index.html with source tag.

Describe the problem

Totp unenroll documentation is wrong. See here, it has this line await multiFactor(currentUser).unenroll(TotpMultiFactorGenerator.FACTOR_ID); . However, this doesn't work. Such code results in the error AuthError: Firebase: Error (auth/multi-factor-info-not-found).

Indeed, it doesn't match the function's signature. It expects a MultiFactorInfo or a factor's uid (multiFactor(auth.currentUser).unenroll(resolver.hints[0].uid))

Steps and code to reproduce issue

Already described.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions