I want to set the JWT Refresh token expiry based on the MySQL date-time value. expiry date coming from MySQL which is in the format
$usr_event_data["allocexpdt"] = 2022-05-30 00:00:00.000000
//this is how I am having it right now. its always giving token expired.
$iat = time();
$nbf = $iat + 10;//10 seconds
$exp = $iat + 30;//30 seconds $usr_event_data["allocexpdt"];
$aud = "myusers";
I want the refresh token to expire exactly on 30-05-2022 at 11:59:59 no matter what the time section of the datetime from the mysql it should always expire at 11:59:59 of that date.