/home/techb158/dev.balacoffee.com/vendor/laravel/passport/src/Bridge
Edit: /home/techb158/dev.balacoffee.com/vendor/laravel/passport/src/Bridge/RefreshTokenRepository.php (2190B)
events = $events;
$this->refreshTokenRepository = $refreshTokenRepository;
}
/**
* {@inheritdoc}
*/
public function getNewRefreshToken()
{
return new RefreshToken;
}
/**
* {@inheritdoc}
*/
public function persistNewRefreshToken(RefreshTokenEntityInterface $refreshTokenEntity)
{
$this->refreshTokenRepository->create([
'id' => $id = $refreshTokenEntity->getIdentifier(),
'access_token_id' => $accessTokenId = $refreshTokenEntity->getAccessToken()->getIdentifier(),
'revoked' => false,
'expires_at' => $refreshTokenEntity->getExpiryDateTime(),
]);
$this->events->dispatch(new RefreshTokenCreated($id, $accessTokenId));
}
/**
* {@inheritdoc}
*/
public function revokeRefreshToken($tokenId)
{
$this->refreshTokenRepository->revokeRefreshToken($tokenId);
}
/**
* {@inheritdoc}
*/
public function isRefreshTokenRevoked($tokenId)
{
return $this->refreshTokenRepository->isRefreshTokenRevoked($tokenId);
}
}