Skip to content

Commit

Permalink
fix: add missing param to setAuthorizationCode (#1048)
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanT123 authored Jul 7, 2023
1 parent 2146eb9 commit 096db2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/OAuth2/ResponseType/AuthorizationCode.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function getAuthorizeResponse($params, $user_id = null)
public function createAuthorizationCode($client_id, $user_id, $redirect_uri, $scope = null, $code_challenge = null, $code_challenge_method = null)
{
$code = $this->generateAuthorizationCode();
$this->storage->setAuthorizationCode($code, $client_id, $user_id, $redirect_uri, time() + $this->config['auth_code_lifetime'], $scope, $code_challenge, $code_challenge_method);
$this->storage->setAuthorizationCode($code, $client_id, $user_id, $redirect_uri, time() + $this->config['auth_code_lifetime'], $scope, null, $code_challenge, $code_challenge_method);

return $code;
}
Expand Down

0 comments on commit 096db2c

Please sign in to comment.