bright-policeman-41717
12/29/2022, 8:03 AM// This is node-js pseudo code and won't work if you copy it 1:1
const body = {
// grant_scope: ["foo", "bar"],
// ...
session: {
id_token: {
"foo": "bar"
},
}
}
fetch('<https://hydra/oauth2/auth/requests/consent/>' + challenge + '/accept', {
method: 'PUT',
body: JSON.stringify(body),
headers: { 'Content-Type': 'application/json' }
}).
// then(function (response) {