-
Notifications
You must be signed in to change notification settings - Fork 986
Closed
Description
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.