You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
token depends on the expiration date, currently the self::$timeNow attribute is null so getTimeNow() returns the current time() and not the one determined by the auth token.
my Solution:
public function checkExpires(AccessToken $accessToken, $tokenObject){
$expires = $accessToken->getTimeNow() + $tokenObject['expires_in'];
return ($expires < time());
}
public function myCode($accessToken, $tokenObject, $bdTokenObject){
$accessToken->setTimeNow($bdTokenObject->dt_create);
if($this->checkExpires($accessToken, $tokenObject)){
// token expired....
}
}
The text was updated successfully, but these errors were encountered:
token depends on the expiration date, currently the self::$timeNow attribute is null so getTimeNow() returns the current time() and not the one determined by the auth token.
my Solution:
The text was updated successfully, but these errors were encountered: