Skip to content

[BUG] Add missing imports for encrypt, PlatformCredential, and resolve_user_credentials in main.py #212

Description

@Aditi-Singh-14

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

  1. Start the backend server
  2. Hit /generate-blog or /auth/linkedin/callback endpoint
  3. Observe NameError: name 'resolve_user_credentials' is not defined

Expected Behavior

All symbols should be properly imported at the top of main.py.

Metadata

Metadata

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions