This package provides class that generates token derived from your private key using ES256 JWT algorithm. For more info check useful links
PHP 7.2+
Install the composer package:
composer require kissdigital-com/apple-sign-in-client-secret-generator
<?php
use Kissdigitalcom\AppleSignIn\ClientSecret;
$clientId = 'com.kissdigital.TESTAPP';
$teamId = 'FOO123BAR456';
$keyId = '654RAB321OOF';
$certPath = __DIR__ . '/certificate.p8';
$clientSecret = new ClientSecret($clientId, $teamId, $keyId, $certPath);
echo $clientSecret->generate();
- https://developer.apple.com/sign-in-with-apple/get-started
- https://developer.okta.com/blog/2019/06/04/what-the-heck-is-sign-in-with-apple
KISS digital is a digital agency located in Kraków, Poland. We provide creative, strategic and technical development of websites and mobile applications.