Auth Kit

All authentication features in one place

{% if is_authenticated %} Authenticated {{ user.username }} {% else %} Not Authenticated {% endif %} Auth Type: {{ auth_type|upper }} {% if use_auth_cookie %} Cookie Auth Enabled {% endif %} {% if use_mfa %} MFA Enabled {% endif %} {% if use_passwordless %} Passwordless Enabled {% endif %}

Authentication

{% if not is_authenticated %}
POST /api/auth/login/
{% if login_uses_email %}
{% elif login_uses_username %}
{% else %}
{% endif %}
{% if has_social_auth and social_providers %}
OR
{% endif %} {% if use_passwordless and passwordless_handlers %}
PASSWORDLESS
{% for handler in passwordless_handlers %} {% if handler.name == 'email' %}
POST /api/auth/passwordless/email/initiate/
{% endif %} {% if handler.name == 'webauthn' %}
POST /api/auth/passwordless/webauthn/initiate/
{% endif %} {% endfor %} {% endif %} {% if use_mfa %} {% endif %}
{% else %}
POST /api/auth/logout/
{% endif %}
{% if not is_authenticated %}

Registration

POST /api/auth/registration/
{% if has_username_field %}
{% endif %}
{% if has_first_name %}
{% endif %} {% if has_last_name %}
{% endif %}
{% endif %} {% if is_authenticated %}

User Profile

GET /api/auth/user/
PUT /api/auth/user/
{% if has_username_field %}
{% endif %}
{% if has_first_name %}
{% endif %} {% if has_last_name %}
{% endif %}
{% endif %}

Password Management

{% if is_authenticated %} {% else %} {% endif %} {% if not is_authenticated %} {% endif %}
{% if is_authenticated %}
POST /api/auth/password/change/
{% else %}
POST /api/auth/password/reset/
POST /api/auth/password/reset/confirm/
{% endif %}
{% if is_authenticated and use_mfa %}

Multi-Factor Authentication

Loading methods...

{% endif %} {% if is_authenticated %}

Passkeys & Security Keys

{% if webauthn_credentials %}

Registered Credentials

{% for cred in webauthn_credentials %} {% endfor %}
Add New
{% endif %}
POST /api/auth/webauthn/credentials/register_options/
{% endif %} {% if is_authenticated and has_social_auth and social_providers %}

Social Connections

{% if social_connections %}

Connected Accounts

{% for connection in social_connections %} {% endfor %}
Connect More
{% endif %}
{% endif %}