RefreshTokenRepository
class RefreshTokenRepository implements RefreshTokenRepositoryInterface
Traits
Methods
void
from
PersistsTokens
RefreshTokenEntityInterface|null
getNewRefreshToken()
Create a refresh token when the issuance policy allows it.
void
persistNewRefreshToken(RefreshTokenEntityInterface $refreshTokenEntity)
Persist a refresh token and its grant family.
void
revokeRefreshToken(string $tokenId)
Revoke a refresh token.
bool
isRefreshTokenRevoked(string $tokenId)
Determine whether a refresh token has been revoked.
Details
in
PersistsTokens at line 15
protected void
saveToken(Model $token)
Save a credential or fail when a model observer cancels persistence.
at line 22
__construct(Dispatcher $events)
Create a new repository instance.
at line 32
RefreshTokenEntityInterface|null
getNewRefreshToken()
Create a refresh token when the issuance policy allows it.
{@inheritdoc}
at line 57
void
persistNewRefreshToken(RefreshTokenEntityInterface $refreshTokenEntity)
Persist a refresh token and its grant family.
{@inheritdoc}
at line 119
void
revokeRefreshToken(string $tokenId)
Revoke a refresh token.
{@inheritdoc}
at line 137
bool
isRefreshTokenRevoked(string $tokenId)
Determine whether a refresh token has been revoked.
{@inheritdoc}