The discussion revolves around the frequency of two-factor authentication (2FA) prompts in a community forum. opcourdis inquires about changing the 2FA periodicity or triggering it only for unknown IPs, suggesting a weekly frequency might suffice with robust spam prevention and email verification. nat notes that 2FA prompts are infrequent due to long session durations and suggests adjusting session settings or implementing Single Sign-On (SSO) to reduce 2FA requirements. opcourdis clarifies that enforcing 2FA with long session durations can mitigate the issue, as longer sessions reduce the frequency of 2FA prompts.
Just noting that I’ve never been prompted for 2FA on meta as my session is rarely/never expired.
There are some session settings you can set: /admin/site_settings/category/all_results?filter=session
“Persistent sessions” is enabled by default
“Maximum session age” is 60 days (1440h) by default
You could try to extend the session age, but I feel like a user who hasn’t opened the community in 60 days should probably be prompted to log in again.
Something else you can explore is also SSO, so there isn’t a need for your user to undergo 2FA.
On meta,2FA is not enforced. But if we take into account sessions duration even if I enforce it via admin/enforce_second_factor, a high session duration will prevent it to be asked so it solves the issue.