decode() публичный Метод

Decode the data with the given key Optional "verify" parameter validates the signature as well (default is on)
public decode ( string $data, boolean $verify = true ) : stdClass
$data string Data to decode (entire JWT data string)
$verify boolean Verify the signature on the data [optional]
Результат stdClass Decoded claims data
Пример #1
0
 public function getTokenData($token)
 {
     $jwt = new Jwt\Jwt(new Jwt\Header('starfish'));
     return $jwt->decode($token);
 }