I posted a question on SO that had various questions regarding the confusion that I have on this particular matter. I was told that I should break down my questions into little pieces since my question was too broad, so here I go.
I have a backend ready with a lot of views, models and serializers from DRF. Now I want to apply authentication to my app and create RESTful apis that are consumed at the front-end. So the doubts that I have-
- How does token system works?
- How does a token sent from the front-end validates at the back-end, when each time a user logs-out and logs back in, a new token is sent? (i.e. How does backend knows the token at the front-end has changed and what to verify it against)
- How to use token authentication with drf and angularjs?
I hope my questions are clear. In case they are not, suggest me edits. I'd also like some examples(if any) on how does this all happens.
Also, if you want to see the original post.