You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here's the error:
PHP Catchable fatal error: Argument 1 passed to OAuth2\GrantType\AuthorizationCode::__construct() must be an instance of OAuth2\Storage\AuthorizationCodeInterface, none given, called in vendor/adoy/oauth2/src/OAuth2/Client.php on line 220 and defined in vendor/bshaffer/oauth2-server-php/src/OAuth2/GrantType/AuthorizationCode.php on line 22
Downgrading to version 1.6 fixes the issue.
The text was updated successfully, but these errors were encountered:
Recently updated my project through composer and OAuth2 started failing when requesting the access token.
Here's the code:
$tokeninfo = $client->getAccessToken($this->BASE_URL . $this->TOKEN_URL, 'authorization_code', array('code' => $code,'redirect_uri' => SITE_URL . "/externallogin/" . $this->organization_id));
Here's the error:
PHP Catchable fatal error: Argument 1 passed to OAuth2\GrantType\AuthorizationCode::__construct() must be an instance of OAuth2\Storage\AuthorizationCodeInterface, none given, called in vendor/adoy/oauth2/src/OAuth2/Client.php on line 220 and defined in vendor/bshaffer/oauth2-server-php/src/OAuth2/GrantType/AuthorizationCode.php on line 22
Downgrading to version 1.6 fixes the issue.
The text was updated successfully, but these errors were encountered: