bugfix: error field in response changed to "message"

Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
2025-03-25 10:59:54 +01:00
parent a47eb00a8b
commit ee6b48d4e4
3 changed files with 2 additions and 248 deletions

View File

@@ -51,17 +51,12 @@ function handleResponse(response){
}
response.json().then(json => {
console.log("handleResponse → error",json);
if (json.error) show(json.error);
if (json.message) show(json.message);
if (json.data.client_id) setText('client_id',json.data.client_id);
if (json.data.parameter) setText('parameter',json.data.parameter);
if (json.data.redirect_uri) setText('redirect_uri',json.data.redirect_uri);
if (json.data.response_type)setText('response_type',json.data.response_type)
});
/*if (json.error != "invalid_request_uri"){
var url = params.get('redirect_uri') + '?' + new URLSearchParams(json).toString();
console.log('redirecting to '+url);
redirect(url);
}*/
}
}