Skip to content

Commit 90a5aa5

Browse files
committed
Fix: Token refresh grace period
1 parent 4d32ae6 commit 90a5aa5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/obelisk/asynchronous/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ async def _verify_token(self) -> None:
102102
if (
103103
self._token is None
104104
or self._token_expires is None
105-
or self._token_expires <= (datetime.now() - self.grace_period)
105+
or self._token_expires <= (datetime.now() + self.grace_period)
106106
):
107107
try:
108108
await self._get_token()

0 commit comments

Comments
 (0)