Log in to store a JWT and load your profile.
Django

JWT login demo

A simple landing page for registering, logging in, and checking the protected profile API.

API REST + JWT
Frontend HTML + CSS
Backend Django

Register

Create a new account with the serializer-backed API.

Login

Submit your credentials to receive access and refresh tokens.

Profile

The profile endpoint is protected, so the page sends your JWT in an authorization header.

No profile loaded yet.