Skip to content

ImportError: cannot import name 'auth_cookie' #198

Description

@Spirit412

Set up the project without using - [ ] Add authentication via cookie support
After launching, I get an error
File "/app/src/test_template_api/web/api/users/views.py", line 7, in <module> from test_template_api.db.models.users import auth_cookie # type: ignore ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ImportError: cannot import name 'auth_cookie' from 'test_template_api.db.models.users' (/app/src/test_template_api/db/models/users.py)
I deleted line 7
from test_template_api.db.models.users import auth_cookie # type: ignore

After that, the application started without errors

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions