Closed pschmitt closed 3 years ago
Ah, I simply haven't implemented this, as I didn't need it :) A patch is welcome, if you'd like to work on this. It shouldn't be hard.
If the server has any way to specify which 2FA method the user prefers, we could pick that.
Alternatively, we could allow the config to set that up, or ask the user interactively if no default has been set up.
So here's what happened:
Technically more than 1 2FA can be set up. In my case that'd be TOTP + Email.
https://github.com/mvdan/bitw/blob/7b76ea2eb9c7fecb6de92e30d8a3e3cbb30569ff/auth.go#L93-L95