How to authenticate a user in websocket connection in django channels when using token authentication [duplicate]
This question already has answers here : How do you authenticate a websocket with token authentication on django channels? (5 answers) I am using a frontend framework ( Vuejs ) and django-rest-framework for the REST API in my project. Also, for JSON web token authentication I am using django-rest-framework-jwt . After a successful login, the user is provided with a token. This token is passed into every request to fetch any API related stuff. Now I would like to integrate django channels into my project. So, after successful login, when the token is received in the client side, I would like to