Skip to content

Commit

Permalink
Bug lexik#15 Fix a bug when token is invalid
Browse files Browse the repository at this point in the history
This PR was squashed before being merged into the master branch (closes lexik#15).
  • Loading branch information
markitosgv committed Oct 11, 2015
2 parents de9b74f + 13e18c3 commit ddf66e4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Entity/RefreshToken.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,4 +153,12 @@ public function isValid()

return ($this->valid >= $datetime) ? true : false;
}

/**
* @return string Refresh Token
*/
public function __toString()
{
return $this->getRefreshToken();
}
}

0 comments on commit ddf66e4

Please sign in to comment.