Skip to content

Commit 55f50a6

Browse files
committed
Merge branch 'release/1.0.1'
2 parents c66000a + f1c83a5 commit 55f50a6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.0
1+
1.0.1

src/Api/Token.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,6 @@ public function validFor(): int
8585
{
8686
return is_null($this->access_token) || Carbon::now()->gte($this->expires_at)
8787
? 0
88-
: $this->expires_at?->diffInSeconds();
88+
: (int) floor(abs(Carbon::now()->diffInSeconds($this->expires_at)));
8989
}
9090
}

0 commit comments

Comments
 (0)