src/Auth/TokenAuthenticate.php
public function getUser(Request $request)
    {
        if (!empty($this->_config['header'])) {
            $token = $request->header($this->_config['header']);
            if ($token) {
                return $this->_findUser($token);
            }
        }
        if (!empty($this->_config['parameter']) &&
            !empty($request->query[$this->_config['parameter']])
        ) {
            $token = $request->query[$this->_config['parameter']];
            return $this->_findUser($token);
        }
        return false;
    }
public function getUser(Request $request)
    {
        if (!empty($this->_config['header'])) {
            $token = $request->header($this->_config['header']);
            if ($token) {
                return $this->_findUser($token);
            }
        }
        if (!empty($this->_config['parameter']) &&
            !empty($request->query[$this->_config['parameter']])
        ) {
            $token = $request->query[$this->_config['parameter']];
            return $this->_findUser($token);
        }
        return false;
    }
public function getUser ( Request $ request ) { if ( ! empty ( $ this -> _config [ 'header' ] ) ) { $ token = $ request -> header ( $ this -> _config [ 'header' ] ) ; if ( $ token ) { return $ this -> _findUser ( $ token ) ; } } if ( ! empty ( $ this -> _config [ 'parameter' ] ) && ! empty ( $ request -> query [ $ this -> _config [ 'parameter' ] ] ) ) { $ token = $ request -> query [ $ this -> _config [ 'parameter' ] ] ; return $ this -> _findUser ( $ token ) ; } return false ; }
Get token information from the request.

@param Request $request Request object.
@return mixed Either false or an array of user information
Get token information from the request .