diff --git a/src/khoj/configure.py b/src/khoj/configure.py index fc64af0f..022f1395 100644 --- a/src/khoj/configure.py +++ b/src/khoj/configure.py @@ -82,9 +82,7 @@ class UserAuthenticationBackend(AuthenticationBackend): or subscription_state == SubscriptionState.TRIAL.value ) if subscribed: - return AuthCredentials(["authenticated", "subscribed"]), AuthenticatedKhojUser( - user_with_token.user - ) + return AuthCredentials(["authenticated", "subscribed"]), AuthenticatedKhojUser(user) return AuthCredentials(["authenticated"]), AuthenticatedKhojUser(user) return AuthCredentials(["authenticated", "subscribed"]), AuthenticatedKhojUser(user) if len(request.headers.get("Authorization", "").split("Bearer ")) == 2: