JWT and session playground
Log in every way your project supports, then watch the JWT and the session here.
Kept in this browser's localStorage. Every visit refreshes it and asks the server to verify it.
Django's session cookie, set by Session Login or the admin.
{% if request.user.is_authenticated %}Logged in as {{ request.user }} with this session. {% if request.user.is_superuser %}superuser{% elif request.user.is_staff %}staff{% endif %}
{% else %}No session login yet.
{% endif %}{{ sign_in.client_id }}{% else %}Not set up{% endif %}/{{ jwt_token_url }}JWT Login (Simple JWT)/{{ jwt_refresh_url }}refresh, on every visit/{{ jwt_verify_url }}verify, after each login{{ google_token_url }}Google credential to JWT{{ microsoft_signin_url }}Microsoft sign-in