Skip to content

Commit c640bf0

Browse files
committed
Fix #159
1 parent 1330fa4 commit c640bf0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Storage/FluentRefreshToken.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ class FluentRefreshToken extends FluentAdapter implements RefreshTokenInterface
2525
public function get($token)
2626
{
2727
$result = $this->getConnection()->table('oauth_refresh_tokens')
28-
->where('id', $token)
28+
->where('oauth_refresh_tokens.id', $token)
29+
->where('oauth_refresh_tokens.expire_time', '>=', time())
2930
->first();
3031

3132
if (is_null($result)) {

0 commit comments

Comments
 (0)