Thigazhezhilan J ae3a335ea1 Harden server restart: remove import-time crashes, centralise secret validation
- auth_service.py: RESET_OTP_SECRET no longer crashes at import; read lazily
  inside _hash_otp() so the module always loads cleanly
- main.py: _validate_runtime_secrets() now checks both BROKER_TOKEN_KEY and
  RESET_OTP_SECRET together, reporting all missing vars in one clear message
- .env.example: documents every required/optional env var with generation commands

With load_dotenv() + .env file, all secrets survive pm2 restarts automatically.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-03 12:58:22 +05:30
2026-02-01 13:57:30 +00:00
2026-02-01 13:57:30 +00:00
2026-02-01 13:57:30 +00:00
2026-02-01 13:57:30 +00:00
2026-02-01 13:57:30 +00:00
2026-02-01 13:57:30 +00:00
2026-02-01 13:57:30 +00:00
2026-02-01 13:57:30 +00:00
2026-02-01 13:57:30 +00:00
2026-02-01 13:57:30 +00:00
2026-02-01 13:57:30 +00:00
2026-02-01 13:57:30 +00:00
2026-05-02 21:38:30 +00:00
Description
No description provided
2.5 MiB
Languages
Python 97.7%
PowerShell 1.3%
JavaScript 0.5%
Shell 0.4%