Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/Apple/Provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace SocialiteProviders\Apple;

use DateInterval;
use Firebase\JWT\JWK;
use GuzzleHttp\Client;
use GuzzleHttp\RequestOptions;
Expand Down Expand Up @@ -139,7 +140,8 @@ public static function verify($jwt)
$constraints = [
new SignedWith(new Sha256, AppleSignerInMemory::plainText($publicKey['key'])),
new IssuedBy(self::URL),
new LooseValidAt(SystemClock::fromSystemTimezone()),
// fix for #1354
new LooseValidAt(SystemClock::fromSystemTimezone(), new DateInterval('PT3S')),
];

try {
Expand Down