Skip to content

get_current_user Uses Depends() Default but Is Also Called Directly #14

Description

@ayahaustine

File: internal_admin/auth/routes.py

get_current_user has db: Session = Depends(get_session) as a parameter default, but in site.py it is called as a plain function: get_current_user(request, self.config, db_session). Mixing DI-aware signatures with manual calls is confusing and error-prone.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions