Skip to content

Commit

Permalink
Merge branch 'release/0.2.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmypuckett committed Apr 14, 2024
2 parents 73a4114 + 0140b76 commit 29b6586
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.2.0
0.2.1
2 changes: 1 addition & 1 deletion src/Api/Token.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,6 @@ public function validFor(): int
{
return is_null($this->access_token) || CarbonImmutable::now()->gte($this->expires_at)
? 0
: $this->expires_at?->diffInSeconds();
: (int) floor(abs(CarbonImmutable::now()->diffInSeconds($this->expires_at)));
}
}

0 comments on commit 29b6586

Please sign in to comment.