Description
backend/main.py uses three symbols that are defined in other modules but never imported:
encrypt from backend/utils/crypto.py
PlatformCredential from backend/models/user.py
resolve_user_credentials from backend/services/credential_service.py
This will cause a NameError at runtime when any endpoint that uses these symbols is called.
Steps To Reproduce
- Start the backend server
- Hit /generate-blog or /auth/linkedin/callback endpoint
- Observe NameError: name 'resolve_user_credentials' is not defined
Expected Behavior
All symbols should be properly imported at the top of main.py.
Description
backend/main.py uses three symbols that are defined in other modules but never imported:
encryptfrom backend/utils/crypto.pyPlatformCredentialfrom backend/models/user.pyresolve_user_credentialsfrom backend/services/credential_service.pyThis will cause a NameError at runtime when any endpoint that uses these symbols is called.
Steps To Reproduce
Expected Behavior
All symbols should be properly imported at the top of main.py.