I went looking to re-attempt 2FA setup. After enabling it in the options, the link that for 0.18.0 would trigger an event to add it to AndOTP (instead of just providing the secret) isn't showing up at all. (If that makes any sense in my current decaffeinated state)
Weird, opening in my browser now, it's there. (And I've finally figured out how to make bitwarden handle sha256.) In any case, I'm all good and properly using 2FA.
It's currently a little awkward, after you enable + save the first time you need to refresh the page in order to see the button which contains the otpauth:// link.
The link starts with otpauth://, which will likely do nothing on desktop. Either click on it from a mobile device, or on desktop you can use an addon like Offline QR Code Generator (Firefox), then right-click the link and select QR code from link. This will show a QR code you'll be able to enroll in any TOTP app. Hopefully they'll add an option to display a QR code when using the desktop interface in newer versions of Lemmy.
Can I copy the link it generates and put it directly into my app that handles 2FA? (1password). Thought about trying it, but I didn’t see any recovery codes and am not keen on getting locked out.
This worked for me in Bitwarden: note since Lemmy 2FA uses SHA256 you have to copy/paste the entire link and not just the secret token. If you copy/paste just the secret token most password managers with TOTP generation have it defaulted to SHA1.
Worth noting that turning on 2FA doesn't log you out of your current session so you have the opportunity to turn it back off again if you can't copy it over in this way.