def METHOD_NAME(email: str, name: str):
    user = User(email, name)
    db.session.add(user)
    db.session.commit()
    app.logger.info("Created new user with email %s and id: %s", email, user.id)
    # Login & make sure everything's set correctly
    login_user(user)
    assert current_user.id == user.id
    # FIXME: why do we do this?
    current_user.id = user.id
    return user