Skip to content

Error while getting access token #45

Description

@amirping

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions