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.
2 parents c66000a + f1c83a5 commit 55f50a6Copy full SHA for 55f50a6
VERSION
@@ -1 +1 @@
1
-1.0.0
+1.0.1
src/Api/Token.php
@@ -85,6 +85,6 @@ public function validFor(): int
85
{
86
return is_null($this->access_token) || Carbon::now()->gte($this->expires_at)
87
? 0
88
- : $this->expires_at?->diffInSeconds();
+ : (int) floor(abs(Carbon::now()->diffInSeconds($this->expires_at)));
89
}
90
0 commit comments