Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,12 @@ public function checkOrAcquireAccessToken(): void

public function tokenHasExpired(): bool
{
// Starting July 1st, 2025 only short-lived access tokens will be issued from the API. This will invalidate all
// tokens issued before July 1st with a lifespan longer than 10 minutes.
if (time() > 1751320800 && $this->tokenExpires > time() + 600) {
return true;
}

return $this->tokenExpires - 10 < time();
}

Expand Down