def generate_login_token(site, site_url, email):
    timestamp = 0
    user = site.users.find_item_by_email(email)
    if user is not None and user.last_login is not None:
        # Successul login changes user.last_login, which invalidates
        # all tokens generated for the user.
        timestamp = _datetime_to_timestamp(user.last_login)
    token_data = {
        'site': site_url,
        'email': email,
        'timestamp': timestamp
    }
    return signing.dumps(token_data, salt=site_url, compress=True)
Default implmentation of this function that uses get_transaction
dataset/ETHPy150Open wrr/wwwhisper/wwwhisper_auth/login_token.py/generate_login_token--crossover with--dataset/ETHPy150Open priestc/moneywagon/moneywagon/core.py/Service.get_unspent_outputs