Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while getting access token #45

Open
amirping opened this issue Apr 5, 2023 · 0 comments
Open

Error while getting access token #45

amirping opened this issue Apr 5, 2023 · 0 comments

Comments

@amirping
Copy link

amirping commented Apr 5, 2023

using that code to get the access token

$client =  new League\OAuth2\Client\Provider\Apple([
                'clientId'          => $this->apple_clientId ,
                'teamId'            => $this->apple_teamId,
                'keyFileId'         => $this->apple_keyFileId,
                'keyFilePath'       => $this->apple_keyFilePath,
                'redirectUri'       => $this->apple_redirectUri,
            ]);

        $token = $client->getAccessToken('authorization_code', [
            'code' => $idToken
        ]);

results :
PHP Fatal error: Uncaught Error: Cannot instantiate interface Lcobucci\JWT\Token in [/var/www/vhosts/..../lcobucci/jwt/src/Token/Builder.php]:122
PHP version : 7.4.33

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant