full refresh token

This commit is contained in:
IluaAir
2025-09-27 11:24:57 +03:00
parent 3dc36a2f25
commit f4e46bef22
5 changed files with 30 additions and 34 deletions

View File

@@ -37,7 +37,7 @@ async def get_current_user(
user = TokenData(**payload)
if check_active and not user.is_active:
raise HTTPException(status_code=400, detail="Inactive user")
except InvalidTokenError:
except (InvalidTokenError, AttributeError):
raise credentials_exception
return user