diff options
author | 2020-12-01 10:24:24 +0200 | |
---|---|---|
committer | 2020-12-01 10:24:24 +0200 | |
commit | 04c019feba935ade892ca06e39fafe7d2ec8de14 (patch) | |
tree | 3621ad34d091362a27a0ef0bf93e79f2d42f447d /backend | |
parent | Create authentication backend for JWT (diff) |
Fix import of user
Diffstat (limited to 'backend')
-rw-r--r-- | backend/authentication/backend.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/backend/authentication/backend.py b/backend/authentication/backend.py index c38bfaf..38668eb 100644 --- a/backend/authentication/backend.py +++ b/backend/authentication/backend.py @@ -6,7 +6,8 @@ from starlette import authentication from starlette.requests import Request from backend import constants -from backend.authentication import User +# We must import user such way here to avoid circular imports +from .user import User class JWTAuthenticationBackend(authentication.AuthenticationBackend, ABC): |