From 50049be81b4eb3c94006ca7acbd078c319c3171f Mon Sep 17 00:00:00 2001 From: Tim Carr Date: Sat, 4 Jul 2026 14:51:59 +0800 Subject: [PATCH] Uninstall: Update Token Revokation --- uninstall.php | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/uninstall.php b/uninstall.php index 84f2cce..c80b2de 100644 --- a/uninstall.php +++ b/uninstall.php @@ -37,14 +37,12 @@ 'https://api.kit.com/v4/oauth/revoke', array( 'headers' => array( - 'Accept' => 'application/json', - 'Content-Type' => 'application/json', + 'Content-Type' => 'application/x-www-form-urlencoded', ), - 'body' => wp_json_encode( - array( - 'client_id' => 'L0kyADsB3WP5zO5MvUpXQU64gIntQg9BBAIme17r_7A', - 'token' => $connection['access_token'], - ) + 'body' => array( + 'client_id' => 'L0kyADsB3WP5zO5MvUpXQU64gIntQg9BBAIme17r_7A', + 'token' => $connection['access_token'], + 'token_type_hint' => 'access_token', ), 'timeout' => 5, ) @@ -57,14 +55,12 @@ 'https://api.kit.com/v4/oauth/revoke', array( 'headers' => array( - 'Accept' => 'application/json', - 'Content-Type' => 'application/json', + 'Content-Type' => 'application/x-www-form-urlencoded', ), - 'body' => wp_json_encode( - array( - 'client_id' => 'L0kyADsB3WP5zO5MvUpXQU64gIntQg9BBAIme17r_7A', - 'token' => $connection['refresh_token'], - ) + 'body' => array( + 'client_id' => 'L0kyADsB3WP5zO5MvUpXQU64gIntQg9BBAIme17r_7A', + 'token' => $connection['refresh_token'], + 'token_type_hint' => 'refresh_token', ), 'timeout' => 5, )