Skip to content

Commit b53b0b7

Browse files
fix example
1 parent 6851284 commit b53b0b7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

examples/src/Repositories/DeviceCodeRepository.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ public function getDeviceCodeEntityByDeviceCode(string $deviceCode): ?DeviceCode
4949
$deviceCodeEntity->setIdentifier($deviceCode);
5050
$deviceCodeEntity->setExpiryDateTime(new DateTimeImmutable('now +1 hour'));
5151
$deviceCodeEntity->setClient($clientEntity);
52+
$deviceCodeEntity->setLastPolledAt(new DateTimeImmutable());
53+
$deviceCodeEntity->setInterval(5);
5254

5355
// The user identifier should be set when the user authenticates on the
5456
// OAuth server, along with whether they approved the request

0 commit comments

Comments
 (0)