Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
pablonyx committed Jan 4, 2025
1 parent 94773a0 commit 48e4587
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions backend/onyx/auth/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -622,11 +622,8 @@ async def write_token(self, user: User) -> str:
return token

async def read_token(
self, token: Optional[str], user_manager: BaseUserManager[User, uuid.UUID]
self, token: str, user_manager: BaseUserManager[User, uuid.UUID]
) -> Optional[User]:
if not token:
return None

redis = await get_async_redis_connection()
token_data_str = await redis.get(f"{self.key_prefix}{token}")
if not token_data_str:
Expand Down

0 comments on commit 48e4587

Please sign in to comment.