GenTux\Jwt\JwtToken::payload PHP Method

payload() public method

Get the payload from the current token
public payload ( string | null $path = null, string | null $secret = null, string | null $algo = null ) : array
$path string | null dot syntax to query for specific data
$secret string | null
$algo string | null
return array
    public function payload($path = null, $secret = null, $algo = null)
    {
        $token = $this->token();
        $secret = $secret ?: $this->secret();
        $algo = $algo ?: $this->algorithm();
        $payload = $this->jwt->decodeToken($token, $secret, $algo);
        return $this->queryPayload($payload, $path);
    }