private function generateQuery()
    {
        return $this->getUserModel()
                    ->select([
                        $this->getUserTable().'.*'
                    ])
                    ->join($this->getTokenTable(), $this->getTokenColumn('user_id'), '=', $this->getUserTable().'.'.$this->primaryKey)
                    ->where($this->getTokenColumn('token'), '=', $this->getToken());
    }
private function generateQuery()
    {
        return $this->getUserModel()
                    ->select([
                        $this->getUserTable().'.*'
                    ])
                    ->join($this->getTokenTable(), $this->getTokenColumn('user_id'), '=', $this->getUserTable().'.'.$this->primaryKey)
                    ->where($this->getTokenColumn('token'), '=', $this->getToken());
    }
private function generateQuery ( ) { return $ this -> getUserModel ( ) -> select ( [ $ this -> getUserTable ( ) . '.*' ] ) -> join ( $ this -> getTokenTable ( ) , $ this -> getTokenColumn ( 'user_id' ) , '=' , $ this -> getUserTable ( ) . '.' . $ this -> primaryKey ) -> where ( $ this -> getTokenColumn ( 'token' ) , '=' , $ this -> getToken ( ) ) ; }
Generate base query used to retrieve user by token
and update an existing tokens expire time.

@author Morten Rugaard <moru@nodes.dk>
@return mixed
Generate base query used to retrieve user by token and update an existing tokens expire time .