src/Token.php
public static function getPayload(string $token, string $secret): array
    {
        $parser = self::parser($token, $secret);

        return $parser->validate()->parse()->getPayload();
    }
public static function getPayload(string $token, string $secret): array
    {
        $parser = self::parser($token, $secret);

        return $parser->validate()->parse()->getPayload();
    }
public static function getPayload ( string $ token , string $ secret ) : array { $ parser = self :: parser ( $ token , $ secret ) ; return $ parser -> validate ( ) -> parse ( ) -> getPayload ( ) ; }
Return the payload of the token as an associative array. You should run
the validate method on your token before retrieving the payload.

@param string $token

@return array
Return the payload of the token as an associative array . You should run the validate method on your token before retrieving the payload .