luoyy / apple-auth-verify
Apple Auth Verifyn
v1.0.0
2021-04-29 02:27 UTC
Requires
- php: >=7.2
- guzzlehttp/guzzle: ^6.3 || ^7.0.1
- web-token/jwt-core: ^2.2
- web-token/jwt-signature-algorithm-rsa: ^2.2
README
Installation package
composer require luoyy/apple-auth-verify
Quick Sample Usage
/** * DEMO */ use luoyy\AppleAuthVerify\Exceptions\TokenException; use luoyy\AppleAuthVerify\Token; try { if (($identity = Token::verify($request->get('identityToken'))) === false) { throw new AuthException('identityToken verification failed.', 400); } } catch (TokenException $e) { throw new AuthException('identityToken Parsing failed.', 400); } if (time() > $identity->exp) { throw new AuthException('identityToken Expired, please re-authorize.', 400); }
Update log
2021.04.29
:Initialize the warehouse