Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: cannot import name 'auth_cookie' #198

Open
Spirit412 opened this issue Nov 26, 2023 · 3 comments
Open

ImportError: cannot import name 'auth_cookie' #198

Spirit412 opened this issue Nov 26, 2023 · 3 comments

Comments

@Spirit412
Copy link

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

@s3rius
Copy link
Owner

s3rius commented Nov 26, 2023

🤔

Thanks for suggestion. We will take a look.

@david-shiko
Copy link

The same

@SyedDaniyalHassan
Copy link

Also facing the same issue at
"cannot import name 'auth_cookie' from 'basic_app.db.models.users' (D:\NewPC\Playground\python\FastAPI\basic_app\basic_app\db\models\users.py)"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants