diff --git a/authjwt.php b/authjwt.php index b9a851a..cbcbd1a 100644 --- a/authjwt.php +++ b/authjwt.php @@ -93,7 +93,8 @@ class authjwt extends auth public function getdetails () // {{{ { - if (key_exists ("email", $this->payload) && + if (! is_array ($this->payload) || + key_exists ("email", $this->payload) && $this->payload["email"] === "anonymous") return array ("lastname" => "anonymous", "firstname" => "",