reading-notes


Project maintained by will-ing Hosted on GitHub Pages — Theme by mattgraham

Authentication & Production Server

Web Tokens

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.

Structure of a web Token

define


JWT

The JWT is just an authorization token that should be included in all requests:

Install:

  1.  poetry add djangorestframework_simplejwt
    
  2. from rest_framework_simplejwt import views as jwt_views
    

Main Page