code/libraries/joomlatools/component/koowa/event/subscriber/application.php
public function onAfterApplicationInitialise(KEventInterface $event)
    {
        if(JFactory::getUser()->guest)
        {
            $authenticator = $this->getObject('com:koowa.dispatcher.authenticator.jwt');

            if ($authenticator->getAuthToken())
            {
                $dispatcher = $this->getObject('com:koowa.dispatcher.http');
                $authenticator->authenticateRequest($dispatcher->getContext());
            }
        }
    }
public function onAfterApplicationInitialise(KEventInterface $event)
    {
        if(JFactory::getUser()->guest)
        {
            $authenticator = $this->getObject('com:koowa.dispatcher.authenticator.jwt');

            if ($authenticator->getAuthToken())
            {
                $dispatcher = $this->getObject('com:koowa.dispatcher.http');
                $authenticator->authenticateRequest($dispatcher->getContext());
            }
        }
    }
public function onAfterApplicationInitialise ( KEventInterface $ event ) { if ( JFactory :: getUser ( ) -> guest ) { $ authenticator = $ this -> getObject ( 'com:koowa.dispatcher.authenticator.jwt' ) ; if ( $ authenticator -> getAuthToken ( ) ) { $ dispatcher = $ this -> getObject ( 'com:koowa.dispatcher.http' ) ; $ authenticator -> authenticateRequest ( $ dispatcher -> getContext ( ) ) ; } } }
Log user in from the JWT token in the request if possible

onAfterInitialise is used here to make sure that Joomla doesn't display error messages for menu items
with registered and above access levels.
Log user in from the JWT token in the request if possible