What algorithm does 2FA use?

AI-generated summary

The algorithm used by Discourse for 2-Factor Authentication (2FA) is HMAC SHA 1. First_Name inquired about the algorithm due to issues with their 2FA app not recognizing Discourse. supermathie confirmed the algorithm and provided the equivalent oathtool command for generating TOTP codes.

My 2FA app doesn’t recognize Discourse, and I need to input the data myself before I can add the code. What algorithm is the 2FA? Is it HMAC SHA 1?

Yes. The equivalent oathtool command is

oathtool --totp -b «TOTPCODESTRING»

What are you using that it doesn’t recognise Discourse (presumably, it doesn’t recognise the QR code)?

Does it work with this?