You can check if app.user is set.

{% if app.user %}
    # user is logged in
 {% else %}
    # user is not logged in
 {% endif %}