thibaud frere commited on
Commit
bcac3e9
·
1 Parent(s): ee3250c
Files changed (1) hide show
  1. index.html +3 -2
index.html CHANGED
@@ -99,10 +99,11 @@
99
 
100
  const code = params.get('code');
101
  const body = new URLSearchParams({
102
- client_id: CLIENT_ID,
103
  grant_type: 'authorization_code',
104
  code: code,
105
- redirect_uri: REDIRECT_URI
 
 
106
  });
107
 
108
  console.log('Token exchange body:', body.toString());
 
99
 
100
  const code = params.get('code');
101
  const body = new URLSearchParams({
 
102
  grant_type: 'authorization_code',
103
  code: code,
104
+ redirect_uri: REDIRECT_URI,
105
+ client_assertion_type: 'urn:ietf:params:oauth:client-assertion-type:jwt-bearer',
106
+ client_assertion: CLIENT_ID
107
  });
108
 
109
  console.log('Token exchange body:', body.toString());