You are here

public function JwtAuthBaseEvent::getToken in JSON Web Token Authentication (JWT) 8.0

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

Returns the JWT.

Return value

\Drupal\jwt\JsonWebToken\JsonWebTokenInterface Returns the token.

File

src/Authentication/Event/JwtAuthBaseEvent.php, line 37

Class

JwtAuthBaseEvent
Class JwtAuthBaseEvent.

Namespace

Drupal\jwt\Authentication\Event

Code

public function getToken() {
  return $this->jwt;
}