For X (Twitter), just go to Settings and Support > Settings and Privacy. Then select Security and account access > Security. From here if you make sure that 2FA is on, you also get the benefit of ...