Skip to content

This package provides class that generates token derived from your private key using ES256 JWT algorithm.

License

Notifications You must be signed in to change notification settings

akshayna7/Secret-generator-apple-sign-in

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Apple Signin Client Secret Generator for php

Description

This package provides class that generates token derived from your private key using ES256 JWT algorithm.

Requirements

PHP 7.2+

Installation

Install the composer package:

composer require kissdigital-com/apple-sign-in-client-secret-generator

Example Usage

<?php

use Kissdigitalcom\AppleSignIn\ClientSecret;

$clientId = 'com.sdv.sdv';
$teamId   = '778c8dcd';
$keyId    = '8d8cd8c8dc8';
$certPath = __DIR__ . '/certificate.p8';

$clientSecret = new ClientSecret($clientId, $teamId, $keyId, $certPath);

echo $clientSecret->generate();

About

This package provides class that generates token derived from your private key using ES256 JWT algorithm.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages