exp < time()){ die("Token abgelaufen"); } echo json_encode((array) $payload, JSON_UNESCAPED_SLASHES|JSON_UNESCAPED_UNICODE);