Skip to content

Commit 736a765

Browse files
committed
Use client_secret for code exchange in Auth Code Flow
1 parent 3a6d6b7 commit 736a765

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ResponseValidator.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,11 +237,12 @@ export class ResponseValidator {
237237
_processCode(state, response) {
238238
var request = {
239239
client_id: state.client_id,
240+
client_secret: this._settings.client_secret,
240241
code : response.code,
241242
redirect_uri: state.redirect_uri,
242243
code_verifier: state.code_verifier,
243244
};
244-
245+
245246
return this._tokenClient.exchangeCode(request).then(tokenResponse => {
246247

247248
for(var key in tokenResponse) {

0 commit comments

Comments
 (0)