GenTux\Jwt\JwtToken::payload PHP 메소드

payload() 공개 메소드

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
리턴 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);
    }