https://github.com/zishang520/apple-auth-verify
laravel apple-auth-verify
https://github.com/zishang520/apple-auth-verify
Last synced: about 2 months ago
JSON representation
laravel apple-auth-verify
- Host: GitHub
- URL: https://github.com/zishang520/apple-auth-verify
- Owner: zishang520
- License: mit
- Created: 2021-04-29T02:08:00.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-04-29T02:28:19.000Z (over 4 years ago)
- Last Synced: 2025-07-09T09:12:58.098Z (3 months ago)
- Language: PHP
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
- License: LICENSE
Awesome Lists containing this project
README
# Apple login authorization information acquisition
### Installation package
```bash
composer require luoyy/apple-auth-verify
```### Quick Sample Usage
```php
/**
* 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