I'm using this package for my RESTfull API Django application. Currently, all of my requests are in RAW JSON but only endpoints that are related to Authentication (Login, Revoking Tokens, and Renewing Tokens) are in Form-data shape. This is causing an inconvenience in our front-end application.
Also, it is making the customization on Login so difficult.
Currently, for customization, I'm using such a method like this:
I'm using this package for my RESTfull API Django application. Currently, all of my requests are in RAW JSON but only endpoints that are related to Authentication (Login, Revoking Tokens, and Renewing Tokens) are in Form-data shape. This is causing an inconvenience in our front-end application.
Also, it is making the customization on Login so difficult.
Currently, for customization, I'm using such a method like this:
This method good be enhanced if there exists another method that accepts RAW JSON, or at least, a simple dictionary which I can customize easily.