JSON Web Token (JWT) is an open standard (RFC 7519) that defines a compact and self-contained way for securely transmitting information between parties as a JSON object.
You should use Web tokens for Authorization
and information exchange
.
header
typically consists of two partspayload
, which contains the claims. Claims are statements about an entity
The JWT is just an authorization token that should be included in all requests:
Install:
poetry add djangorestframework_simplejwt
from rest_framework_simplejwt import views as jwt_views