public function jwtToken($request = null)
    {
        $token = $this->getToken($request);
        if( ! $token) throw new NoTokenException('JWT token is required.');

        $driver = $this->makeDriver();
        $jwt = new JwtToken($driver);
        $jwt->setToken($token);

        return $jwt;
    }
public function jwtToken($request = null)
    {
        $token = $this->getToken($request);
        if( ! $token) throw new NoTokenException('JWT token is required.');

        $driver = $this->makeDriver();
        $jwt = new JwtToken($driver);
        $jwt->setToken($token);

        return $jwt;
    }
public function jwtToken ( $ request = null ) { $ token = $ this -> getToken ( $ request ) ; if ( ! $ token ) throw new NoTokenException ( 'JWT token is required.' ) ; $ driver = $ this -> makeDriver ( ) ; $ jwt = new JwtToken ( $ driver ) ; $ jwt -> setToken ( $ token ) ; return $ jwt ; }
Create a new JWT token object from the token in the request

@param Request|null $request

@return JwtToken

@throws NoTokenException
Create a new JWT token object from the token in the request