diff --git a/templates/main.html b/templates/main.html index e9ff15b..57591b0 100644 --- a/templates/main.html +++ b/templates/main.html @@ -41,8 +41,7 @@ body: JSON.stringify(data) }) .then(response => { - console.log(response); - window.location.replace(redirect_uri + "?code=" + response + "&state=" + state) + window.location.replace(redirect_uri + "?code=" + response.text() + "&state=" + state) }) .catch(error => { alert("Error sending data: " + error.message);