Skip to content

Commit 096db2c

Browse files
authored
fix: add missing param to setAuthorizationCode (#1048)
1 parent 2146eb9 commit 096db2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/OAuth2/ResponseType/AuthorizationCode.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public function getAuthorizeResponse($params, $user_id = null)
5656
public function createAuthorizationCode($client_id, $user_id, $redirect_uri, $scope = null, $code_challenge = null, $code_challenge_method = null)
5757
{
5858
$code = $this->generateAuthorizationCode();
59-
$this->storage->setAuthorizationCode($code, $client_id, $user_id, $redirect_uri, time() + $this->config['auth_code_lifetime'], $scope, $code_challenge, $code_challenge_method);
59+
$this->storage->setAuthorizationCode($code, $client_id, $user_id, $redirect_uri, time() + $this->config['auth_code_lifetime'], $scope, null, $code_challenge, $code_challenge_method);
6060

6161
return $code;
6262
}

0 commit comments

Comments
 (0)