Skip to content

Commit

Permalink
Revert "Allow setting of the state parameter"
Browse files Browse the repository at this point in the history
  • Loading branch information
ananay committed Jun 10, 2020
1 parent f69033d commit 939e8da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/strategy.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,11 @@ Strategy.prototype.authenticate = function (req, options) {
* @access protected
*/
Strategy.prototype.authorizationParams = function (options) {
options.state = options.state || crypto.randomBytes(5).toString('hex');
options.state = crypto.randomBytes(5).toString('hex');
options.response_type = "code id_token";
options.scope = "name email";
options.response_mode = "form_post";
return options;
}

module.exports = Strategy;
module.exports = Strategy;

0 comments on commit 939e8da

Please sign in to comment.