2FA backup codes not showing

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • 33.0.2
  • Operating system and version (e.g., Ubuntu 24.04):
    • Linux 6.1.0-44-amd64 x86_64
  • Web server and version (e.g, Apache 2.4.25):
    • Chrome + Brave
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • nginx 1.27.2
  • PHP version (e.g, 8.3):
    • 8.4.20
  • Is this the first time you’ve seen this error? (Yes / No):
    • yes
  • When did this problem seem to first start?
    • today
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • No

Summary of the issue you are facing:

I can’t see the the option of generting backup codes on 2FA. But occ twofactorauth:state [UID] shows backup_codes enabled.

Below the Code de recuperation should be a button to either generate backup codes or regenerate backup codes. Your page ends there?

Did you check the logs in your webserver, if there is anything wrong and the code might not run until this button is generated. Or if the webbrowser (or an extension) is blocking something. Try a different browser, test in privacy mode, test without certain content-blocking or content checking extensions.