public function JwtAuthGenerateEvent::removeClaim in JSON Web Token Authentication (JWT) 8
Same name and namespace in other branches
- 8.0 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\EventCode
public function removeClaim($claim) {
$this->jwt
->unsetClaim($claim);
}