fix: authorize

This commit is contained in:
FoskyM 2023-10-01 22:36:18 +08:00
parent 6e2aeffb43
commit b7d78c0af4
No known key found for this signature in database
GPG key ID: 42C0ED6994AD7E9C

View file

@ -204,10 +204,10 @@ class Storage implements
*/
public function setAuthorizationCode($code, $client_id, $user_id, $redirect_uri, $expires, $scope = null, $id_token = null, $code_challenge = null, $code_challenge_method = null)
{
if (func_num_args() > 6) {
/*if (func_num_args() > 6) {
// we are calling with an id token
return call_user_func_array(array($this, 'setAuthorizationCodeWithIdToken'), func_get_args());
}
}*/
// convert expires to datestring
$expires = date('Y-m-d H:i:s', $expires);