key); return $jwt; } //////This function decode the token//////////////////// public function DecodeToken($token) { $decoded = JWT::decode($token, $this->key, array('HS256')); $decodedData = (array) $decoded; return $decodedData; } } ?>