Method DownloadRecoveryCodes()

Assembly: redb.Identity.Management.dll

MFA backup-codes download UX — regenerates the caller's recovery codes and returns
them as a text/plain attachment with Content-Disposition: attachment;
filename=redb-recovery-codes.txt. Mirrors GitHub / Google / Auth0 behaviour:
downloading is destructive (atomically invalidates the prior batch) since recovery
codes are stored only as salted hashes server-side and have no other moment of
existing in plaintext.

[HttpGet("recovery-codes/download")]
public Task<object?> DownloadRecoveryCodes()