bshaffer / oauth2-server-php

A library for implementing an OAuth2 Server in php
http://bshaffer.github.io/oauth2-server-php-docs
MIT License
3.26k stars 952 forks source link

Storage/Pdo.php stores expire time as datestring in oauth_jti. #823

Open Grolim opened 7 years ago

Grolim commented 7 years ago

Both functions getJti & setJti needs convertion from unix-timestamp to datestring at the beginning of the call.

getJti needs the conversion back to unix-timestamp for the returned array.

S.

ivolator commented 7 years ago

Just confirming the issue that is reported here. It looks like the methods are missing this part: $expires = date('Y-m-d H:i:s', $expires);