We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2bb32b3 commit 6214dcaCopy full SHA for 6214dca
src/Apple/Provider.php
@@ -2,6 +2,7 @@
2
3
namespace SocialiteProviders\Apple;
4
5
+use DateInterval;
6
use Firebase\JWT\JWK;
7
use GuzzleHttp\Client;
8
use GuzzleHttp\RequestOptions;
@@ -139,7 +140,8 @@ public static function verify($jwt)
139
140
$constraints = [
141
new SignedWith(new Sha256, AppleSignerInMemory::plainText($publicKey['key'])),
142
new IssuedBy(self::URL),
- new LooseValidAt(SystemClock::fromSystemTimezone()),
143
+ // fix for #1354
144
+ new LooseValidAt(SystemClock::fromSystemTimezone(), new DateInterval('PT3S')),
145
];
146
147
try {
0 commit comments