You are here

public function UsersJwtKeyRepository::deleteUsersKeys in JSON Web Token Authentication (JWT) 8

Delete all keys for one user.

Parameters

int $uid: The user ID.

Overrides UsersJwtKeyRepositoryInterface::deleteUsersKeys

File

modules/users_jwt/src/UsersJwtKeyRepository.php, line 121

Class

UsersJwtKeyRepository
Class UsersJwtKeyRepository

Namespace

Drupal\users_jwt

Code

public function deleteUsersKeys($uid) {
  $this->userData
    ->delete('users_jwt', $uid);
  $this->cacheTagsInvalidator
    ->invalidateTags([
    'users_jwt:' . $uid,
  ]);
}