-
Leif Christian posted an update 3 years, 3 months ago
/**
* Change the token’s expire value.
*
* @param int $expire The default “exp” value in timestamp.
* @param int $issued_at The “iat” value in timestamp.
*
* @return int The “nbf” value.
*/
add_filter(
‘jwt_auth_expire’,
function ( $expire, $issued_at ) {
time() + (DAY_IN_SECONDS * 7)
return $expire;
},
10,
2
);