make totp code fetch more reliable (#809)

This commit is contained in:
Shuchang Zheng
2024-09-11 00:03:09 -07:00
committed by GitHub
parent 200e8207ce
commit 2b365bce59
3 changed files with 4 additions and 1 deletions

View File

@@ -119,6 +119,7 @@ class Settings(BaseSettings):
# TOTP Settings
TOTP_LIFESPAN_MINUTES: int = 10
VERIFICATION_CODE_INITIAL_WAIT_TIME_SECS: int = 40
VERIFICATION_CODE_POLLING_TIMEOUT_MINS: int = 5
def is_cloud_environment(self) -> bool: