diff --git a/src/ApiTokenCookieFactory.php b/src/ApiTokenCookieFactory.php index ffed5d1e..a99dfd9b 100644 --- a/src/ApiTokenCookieFactory.php +++ b/src/ApiTokenCookieFactory.php @@ -48,7 +48,7 @@ public function make($userId, $csrfToken) { $config = $this->config->get('session'); - $expiration = Carbon::now()->addMinutes($config['lifetime']); + $expiration = Carbon::now()->addMinutes((int) $config['lifetime']); return new Cookie( Passport::cookie(),