I am using django-rest-framework <http://www.django-rest-framework.org/> for the REST API and django-rest-framework-jwt <https://github.com/GetBlimp/django-rest-framework-jwt> for JSON web token authentication. After a successful login, the user is provided with a token. I have found how to verify a token <https://getblimp.github.io/django-rest-framework-jwt/#verify-token> with the api call, but is there any way to validate the token inside a view and get the user of that token, similar to request.user?
-- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2B4-nGopatOzbDz4HZmZwPOTVpv5whYBpW-%3DgPdG%2BFhDcmUJsQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.