@node-oauth/oauth2-server
Advanced tools
Comparing version 4.3.2 to 4.3.3
@@ -379,3 +379,3 @@ 'use strict'; | ||
AuthorizeHandler.prototype.getCodeChallenge = function(request) { | ||
return request.body.code_challenge; | ||
return request.body.code_challenge || request.query.code_challenge; | ||
}; | ||
@@ -391,3 +391,3 @@ | ||
AuthorizeHandler.prototype.getCodeChallengeMethod = function(request) { | ||
const algorithm = request.body.code_challenge_method; | ||
const algorithm = request.body.code_challenge_method || request.query.code_challenge_method; | ||
@@ -394,0 +394,0 @@ if (algorithm && !pkce.isValidMethod(algorithm)) { |
{ | ||
"name": "@node-oauth/oauth2-server", | ||
"description": "Complete, framework-agnostic, compliant and well tested module for implementing an OAuth2 Server in node.js", | ||
"version": "4.3.2", | ||
"version": "4.3.3", | ||
"keywords": [ | ||
@@ -6,0 +6,0 @@ "oauth", |
99280
40