diff options
Diffstat (limited to 'OAuth/src/Entity/ClientEntity.php')
-rw-r--r-- | OAuth/src/Entity/ClientEntity.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OAuth/src/Entity/ClientEntity.php b/OAuth/src/Entity/ClientEntity.php index 0def1470..ef62ab50 100644 --- a/OAuth/src/Entity/ClientEntity.php +++ b/OAuth/src/Entity/ClientEntity.php @@ -169,7 +169,7 @@ class ClientEntity extends Consumer implements ClientEntityInterface { $accessToken = $accessTokenRepo->getNewToken( $this, $this->getScopes(), $approval->getUserId() ); '@phan-var AccessTokenEntity $accessToken'; $accessToken->setExpiryDateTime( ( new \DateTimeImmutable() )->add( - new \DateInterval( 'P292277000000Y' ) + new \DateInterval( 'P1000Y' ) ) ); $accessToken->setPrivateKeyFromConfig(); $accessToken->setIdentifier( bin2hex( random_bytes( 40 ) ) ); |