From 9e94f75f7e956de6ae5ed8210511b873696a2b88 Mon Sep 17 00:00:00 2001 From: bniwredyc Date: Thu, 13 Jul 2023 16:53:51 +0200 Subject: [PATCH] fix --- auth/authenticate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auth/authenticate.py b/auth/authenticate.py index 831605e5..770ac1cf 100644 --- a/auth/authenticate.py +++ b/auth/authenticate.py @@ -21,7 +21,7 @@ class JWTAuthenticate(AuthenticationBackend): ) -> Optional[Tuple[AuthCredentials, AuthUser]]: if SESSION_TOKEN_HEADER not in request.headers: - return AuthCredentials(scopes={}), AuthUser(user_id=None) + return AuthCredentials(scopes={}), AuthUser(user_id=None, username='') token = request.headers.get(SESSION_TOKEN_HEADER) if not token: