How can I use `django-rest-knox` with` django-rest-auth`?

I would like to use django-rest-auth to easily use the django-allauth registration and social authentication features in my API.

I would also like to use django-rest-knox as it provides a token to the device, not to the user.

When creating a user through django-rest-authit, he tries to create and return a token. This does not work, because it is necessary to use it to generate a token django-rest-knox, but I do not understand how to do it. Is it possible to share these two packages?

Thank!

+4
source share

Source: https://habr.com/ru/post/1667173/


All Articles