I'm trying to implement authentication with django-rest-auth library in the backend and I'm using react for the front-end. Django-rest-auth returns a token after authentication and I was guessing how to handle it.
From a security perspective can that token be saved in an HTTPOnly cookie or it should be kept only in memory?
Exists a tested approach to achieve local persistence with django-rest-auth and react without implementing vulnerabilities in the website?