I'm currently using Firebase email authentication in a Swift iOS app, but would like to incorporate a 4-digit passcode authentication via SMS (lots of modern apps use this.) Verification example
Because of the way my app works, requiring a password feels incredibly clunky and unnecessary.
In order to do this, I'd need to reset the password each time the user attempts to login, then send the password to the user via Twilio SMS, however the way that Firebase handles password reset will not allow this. In order to reset the password, you have to enter the old password, which interrupts this flow.
Has anyone done this successfully, and if so how?
Thanks in advance!