constant JwtAuthEvents::GENERATE in JSON Web Token Authentication (JWT) 8
Same name and namespace in other branches
- 8.0 src/Authentication/Event/JwtAuthEvents.php \Drupal\jwt\Authentication\Event\JwtAuthEvents::GENERATE
Name of the event fired before a new JWT is encoded.
This event fires prior to a new JWT is encoded. The event contains the payload of the JWT. Subscribers should use this event to add any claims to the JWT before it is given to the client. Bear in mind, JWTs are not encrypted, just signed. Subscribers should not store sensitive information in a JWT.
File
- src/
Authentication/ Event/ JwtAuthEvents.php, line 55
Class
- JwtAuthEvents
- Class JwtAuthEvents.
Namespace
Drupal\jwt\Authentication\EventCode
const GENERATE = 'jwt.generate';