import time


def issued_and_expiration_times(seconds_to_expire):
    """
    Return the times in unix time that a token is being issued and will be
    expired (the issuing time being now, and the expiration being
    ``seconds_to_expire`` seconds after that). Used for constructing JWTs
    Args:
        seconds_to_expire (int): lifetime in seconds
    Return:
        Tuple[int, int]: (issued, expired) times in unix time
    """
    iat = int(time.time())
    exp = iat + int(seconds_to_expire)
    return (iat, exp)