Skip to content

Commit

Permalink
f Fallback to Laravel Passport TTL
Browse files Browse the repository at this point in the history
  • Loading branch information
dusterio committed Dec 7, 2016
1 parent 88105b0 commit 8b28b51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LumenPassport.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public static function tokensExpireIn(DateTimeInterface $date = null, $clientId
if (is_null($date)) {
return isset(static::$tokensExpireAt[$clientId])
? Carbon::now()->diff(static::$tokensExpireAt[$clientId])
: new DateInterval('P100Y');
: Passport::tokensExpireIn();
} else {
static::$tokensExpireAt[$clientId] = $date;
}
Expand Down

0 comments on commit 8b28b51

Please sign in to comment.