diff --git a/flixpy/flix/cli/interactive_client.py b/flixpy/flix/cli/interactive_client.py index 586ecb7..2b7ca4f 100644 --- a/flixpy/flix/cli/interactive_client.py +++ b/flixpy/flix/cli/interactive_client.py @@ -55,7 +55,11 @@ async def _sign_in(self) -> None: async def request(self, *args: Any, **kwargs: Any) -> aiohttp.ClientResponse: # try to auth ahead of time only if the username and password # were explicitly provided - if self.access_key is None and self.__username and self.__password: + if ( + (self.access_key is None or self.access_key.has_expired) + and self.__username + and self.__password + ): await self._sign_in() try: