public function resumeSession($authtoken)
    {
        if( $id = $this->db->get($this->prefix.'authtokens', 'user_id', ['token'=>$authtoken]) )
            $this->user = new User($this, $id);
        else
            return False;
    }
public function resumeSession($authtoken)
    {
        if( $id = $this->db->get($this->prefix.'authtokens', 'user_id', ['token'=>$authtoken]) )
            $this->user = new User($this, $id);
        else
            return False;
    }
public function resumeSession ( $ authtoken ) { if ( $ id = $ this -> db -> get ( $ this -> prefix . 'authtokens' , 'user_id' , [ 'token' => $ authtoken ] ) ) $ this -> user = new User ( $ this , $ id ) ; else return False ; }
Runs when the library is loaded to authenticate and resume the user session
Runs when the library is loaded to authenticate and resume the user session