php-apple-signin icon indicating copy to clipboard operation
php-apple-signin copied to clipboard

Undefined property: stdClass::$kid

Open 17agustin opened this issue 1 year ago • 0 comments

While using the package I got an error saying "Undefined property: stdClass::$kid"

It happened in: AppleSignIn\Vendor\JWT::getPublicKeyKid at line 158.

Version: ^1.1 php version: 8.1

The code I'm using:

            $appleSignInPayload = ASDecoder::getAppleSignInPayload($identityToken);

            /**
             * Obtain the Sign In with Apple email and user creds.
             */
            $email = $appleSignInPayload->getEmail();
            $userId = $appleSignInPayload->getUser();

That would be all I'm doing with the package. Should I change something? any help is worthy :)

17agustin avatar Mar 15 '23 17:03 17agustin