You are here

public function JwtAuthGenerateEvent::removeClaim in JSON Web Token Authentication (JWT) 8.0

Same name and namespace in other branches
  1. 8 src/Authentication/Event/JwtAuthGenerateEvent.php \Drupal\jwt\Authentication\Event\JwtAuthGenerateEvent::removeClaim()

Removes a claim from a JsonWebToken.

See also

\Drupal\jwt\JsonWebToken\JsonWebTokenInterface::unsetClaim()

File

src/Authentication/Event/JwtAuthGenerateEvent.php, line 26

Class

JwtAuthGenerateEvent
Class JwtAuthGenerateEvent.

Namespace

Drupal\jwt\Authentication\Event

Code

public function removeClaim($claim) {
  $this->jwt
    ->unsetClaim($claim);
}