diff --git a/src/Parsed.php b/src/Parsed.php
index <HASH>..<HASH> 100644
--- a/src/Parsed.php
+++ b/src/Parsed.php
@@ -172,7 +172,8 @@ class Parsed
 
     public function getExpiresIn(): int
     {
-        return $this->payload['exp'] - time();
+        $expiresIn = $this->payload['exp'] - time();
+        return $expiresIn > 0 ? $expiresIn : 0;
     }
 
     /**
diff --git a/tests/ParsedTest.php b/tests/ParsedTest.php
index <HASH>..<HASH> 100644
--- a/tests/ParsedTest.php
+++ b/tests/ParsedTest.php
@@ -443,8 +443,6 @@ class ParsedTest extends TestCase
             'hello'
         );
 
-        $result = $parsed->getExpiresIn();
-
-        $this->assertTrue(-100 === $result || -99 === $result);
+        $this->assertSame(0, $parsed->getExpiresIn());
     }
 }
Ammended expires in method in ParsedTest so negative integers are not returned, just zero.