We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 253b27d commit 9183d9aCopy full SHA for 9183d9a
twitchio/authentication/tokens.py
@@ -271,7 +271,7 @@ async def _revalidate_all(self) -> None:
271
self._tokens[user_id]["last_validated"] = datetime.datetime.now().isoformat()
272
273
expires_in: int = valid_resp["expires_in"]
274
- if expires_in <= 60:
+ if expires_in <= 300:
275
logger.debug('Token for "%s" expires in %s seconds. Attempting to refresh token.', user_id, expires_in)
276
277
await self._refresh_token(user_id, refresh)
0 commit comments