验证苹果登录:app 苹果 登录后台做验证登录
//安装类:composer require griffinledingham/php-apple-signin <?php use AppleSignIn\ASDecoder;
//由ios传过来这两个参数 $clientUser = "example_client_user"; $identityToken = "example_encoded_jwt"; $appleSignInPayload = ASDecoder::getAppleSignInPayload($identityToken); /** * Obtain the Sign In with Apple email and user creds. */ $email = $appleSignInPayload->getEmail(); $user = $appleSignInPayload->getUser(); /** * Determine whether the client-provided user is valid. */ $isValid = $appleSignInPayload->verifyUser($clientUser); ?>