taobig/apple-id-login

verify the signature in the id_token

v1.1.1 2022-05-16 10:47 UTC

This package is auto-updated.

Last update: 2024-03-16 14:52:15 UTC


README

A tool set for PHP projects

Latest Stable Version Latest Unstable Version Total Downloads License Build Status Coverage Status

INSTALLATION

Install via Composer

>= PHP 7.1
composer require taobig/apple-id-login

Usage

/** @var taobig\apple\model\Token $obj */
$obj = IdentityTokenChecker::checkAppleIdentityToken($token);
$obj->email;
{
    "iss": "https://appleid.apple.com",
    "aud": "com.xxxxx.ios",
    "exp": 1583465255,
    "iat": 1583464655,
    "sub": "001271.2d8d01e20a41430aa46cc6a4ed5b6dfb.0317",
    "c_hash": "iyWz98oBS5_uNWljBEevdQ",
    "email": "8qgax65eti@privaterelay.appleid.com",
    "email_verified": "true",
    "is_private_email": "true",
    "auth_time": 1583464655,
    "nonce_supported": true
}