Skip to content

Commit

Permalink
Remove double decoding of query parameters(#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
akhudiakov97 authored Jan 5, 2022
1 parent 1bd14c4 commit 28eec19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ class Authenticator {
this._logger.debug("User isn't authenticated: %s", err);
if (requestParams.code) {
return this._fetchTokensFromCode(redirectURI, requestParams.code)
.then(tokens => this._getRedirectResponse(tokens, cfDomain, decodeURIComponent(requestParams.state)));
.then(tokens => this._getRedirectResponse(tokens, cfDomain, requestParams.state));
} else {
let redirectPath = request.uri;
if (request.querystring && request.querystring !== '') {
Expand Down

0 comments on commit 28eec19

Please sign in to comment.