class RefreshTokenRepository implements RefreshTokenRepositoryInterface

Traits

Methods

void
saveToken(Model $token)

Save a credential or fail when a model observer cancels persistence.

__construct(Dispatcher $events)

Create a new repository instance.

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.

Parameters

Model $token

Return Value

void

at line 22
__construct(Dispatcher $events)

Create a new repository instance.

Parameters

Dispatcher $events

at line 32
RefreshTokenEntityInterface|null getNewRefreshToken()

Create a refresh token when the issuance policy allows it.

{@inheritdoc}

Return Value

RefreshTokenEntityInterface|null

at line 57
void persistNewRefreshToken(RefreshTokenEntityInterface $refreshTokenEntity)

Persist a refresh token and its grant family.

{@inheritdoc}

Parameters

RefreshTokenEntityInterface $refreshTokenEntity

Return Value

void

at line 119
void revokeRefreshToken(string $tokenId)

Revoke a refresh token.

{@inheritdoc}

Parameters

string $tokenId

Return Value

void

at line 137
bool isRefreshTokenRevoked(string $tokenId)

Determine whether a refresh token has been revoked.

{@inheritdoc}

Parameters

string $tokenId

Return Value

bool