PHP code example of myshell / apple-laravel-authorization-code
1. Go to this page and download the library: Download myshell/apple-laravel-authorization-code library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
myshell / apple-laravel-authorization-code example snippets
php artisan socialite:apple
php artisan apple:help --refresh
$data = [
"code" => "" //code sended by your front end guy
];
$appleAuth = new AppleAuth($data);
// if you need only the jwt signed with your p8 key file
// $jwt = $appleAuth->getJwtSigned();
// Refresh Token and get user Data
$user = $appleAuth->getUserData();