aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--backend/authentication/backend.py3
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):