You are here

constant JwtAuthEvents::VALID in JSON Web Token Authentication (JWT) 8.0

Same name and namespace in other branches
  1. 8 src/Authentication/Event/JwtAuthEvents.php \Drupal\jwt\Authentication\Event\JwtAuthEvents::VALID

Name of the event fired after a JWT has been validated.

This event fires after a token has been validated. Responders to this event should respond with a valid Drupal user ID. Subscribers may use this event to create new users based on the JWT payload if necessary. Note that this event fires AFTER the token has already been validated. Subscribers should not attempt to prevent authentication during this event. They should instead use the VALIDATE event.

File

src/Authentication/Event/JwtAuthEvents.php, line 40

Class

JwtAuthEvents
Class JwtAuthEvents.

Namespace

Drupal\jwt\Authentication\Event

Code

const VALID = 'jwt.valid';