import secrets


def generate_token(length : int=32) -> str:
    """
    Uses the secrets.token_hex() method to generate a
    a hexidecimal token

    Parameters
    ----------
    length : int
        The desired length of token
        
    Returns
    -------
    str
        The hexidecimal string generated by Python
        
    Notes
    -----
    This method uses the Python secrets.token_hex method
    """
    return secrets.token_hex(length//2)