{% extends 'base.html.twig' %} {% block title %}Monzo Integration{% endblock %} {% block content %} {% if token %} {# ── Connected or Pending ── #}
{% if token.accountId == 'pending' %}⏳{% else %}🔗{% endif %}
{% if token.accountId == 'pending' %}
Awaiting approval in Monzo app
Open your Monzo app and approve the connection, then click Confirm below
{% else %}
Connected
Joint account · connected by {{ token.connectedBy.name }}
{% if token.isExpired() %}
⚠ Token expired — sync will auto-refresh it
{% else %}
Token valid until {{ token.expiresAt|date("d M Y H:i") }}
{% endif %} {% endif %}
{% if token.accountId == 'pending' %}
{% else %}
{% endif %}
{% else %} {# ── Not connected ── #}
🏦

Connect your joint Monzo account

Once connected, you can sync your joint spending directly — pot transfers and top-ups are automatically filtered out.

Connect with Monzo

Setup instructions

  1. Go to developers.monzo.com and sign in
  2. Create a new confidential OAuth client
  3. Set the redirect URI to: {{ monzo_redirect_uri }}
  4. Copy your Client ID and Client Secret into .env.local
  5. Then click Connect with Monzo above
{% endif %} {% endblock %}