{% extends "base.html" %} {% block title %}Sign in a device{% endblock %} {% block content %} {# The mark (docs/backgrounds.md §2): brand only, no data. #} {% include "backdrop.html" %}

Sign in a device an app asked to use your account

{% if let Some(e) = error %}

{{ e }}

{% endif %} {% if let Some(d) = done %}
{% if d.approved %}

Signed in

{{ d.client }} is now signed in as {{ d.username }}. You can close this page and return to it: it picks up its token by itself, so there is nothing to copy or enter.

It is listed under Settings → Tokens, where you can revoke it.

{% else %}

Denied

{{ d.client }} was not signed in, and its code no longer works.

{% endif %}

Sign in another device

{% else if let Some((d, asked)) = pending %}

{{ d.client }} wants to sign in as you

Code {{ d.user_code }}, asked for {% if !d.requester.is_empty() %} from {{ d.requester }}{% endif %}.

Approve only a code you started yourself, just now, on your own device. If someone sent you this code or link, deny it: they are asking for access to your account.

The app gets a token with what you allow here. It expires after 90 days without use, and you can revoke it under Settings → Tokens.

{% for (name, what) in asked %}{% endfor %}
{% else %}
{% endif %} {% endblock %}