Skip to content

Commit 95cc38c

Browse files
Removing microseconds so that Sign in with Apple works again
1 parent a08ded7 commit 95cc38c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/Provider/Apple.php

+2
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,9 @@ public function getAccessToken($grant, array $options = [])
211211
{
212212
$configuration = $this->getConfiguration();
213213
$time = new \DateTimeImmutable();
214+
$time = $time->setTime($time->format('H'), $time->format('i'), $time->format('s'));
214215
$expiresAt = $time->modify('+1 Hour');
216+
$expiresAt = $expiresAt->setTime($expiresAt->format('H'), $expiresAt->format('i'), $expiresAt->format('s'));
215217

216218
$token = $configuration->builder()
217219
->issuedBy($this->teamId)

src/Token/AppleAccessToken.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ protected function getAppleKey()
9999
return JWK::parseKeySet(json_decode($response->getBody()->getContents(), true));
100100
}
101101

102-
return false;
102+
return [];
103103
}
104104

105105
/**

0 commit comments

Comments
 (0)