fix: add await

This commit is contained in:
2026-05-12 22:47:50 +03:00
parent 9166b21249
commit 0cca0fedbe
2 changed files with 2 additions and 2 deletions

View File

@@ -18,7 +18,7 @@ class UserLogoutCommand:
if not refresh_token:
return
try:
payload: RefreshTokenPayload = self._jwt_service.decode_refresh_token(refresh_token)
payload: RefreshTokenPayload = await self._jwt_service.decode_refresh_token(refresh_token)
except ApplicationException:
self._logger.debug('Logout: refresh token invalid/expired, skipping revoke')
return

View File

@@ -29,7 +29,7 @@ async def require_access_token(
if not token:
raise ApplicationException(status_code=401, message="Not authenticated")
payload = jwt_service.decode_access_token(token)
payload = await jwt_service.decode_access_token(token)
if payload.type != "access":
raise ApplicationException(status_code=401, message="Invalid token type")