{% extends 'default.html' %} {% block title %} API Key {% endblock %} {% set active_page = "api_key" %} {% block head %} {% endblock %} {% block default_content %}

API Keys

When you log in on a SimpleLogin mobile app or browser extension, a new API Key is automatically created and stored on your device. It's usually named after the device where it was created, e.g. Samsung S8, John's iPhone, etc.
️API Keys should be kept secret and treated like passwords, they can be used to gain access to your account.
{% for api_key in api_keys %}
{{ api_key.name or "N/A" }}
{% if api_key.last_used %} Created {{ api_key.created_at | dt }}. Used {{ api_key.times }} times. Was last used {{ api_key.last_used | dt }}. {% else %} Never used {% endif %}

Delete
{% endfor %}
{% if api_keys|length > 0 %}
Delete All    

{% endif %}
{{ new_api_key_form.csrf_token }}

New API Key

{{ new_api_key_form.name(class="form-control", placeholder="Chrome") }} {{ render_field_errors(new_api_key_form.name) }}
Name of the api key, e.g. where it will be used.
{% endblock %} {% block script %} {% endblock %}