labcodes / django-react-boilerplate

Boilerplate for a Django + React project
41 stars 6 forks source link

Should the backend include endpoints to authenticate the front-end application? #33

Open luzfcb opened 3 years ago

luzfcb commented 3 years ago

Should use JWT? Why? Should use Django Session? Why?

Related https://blog.tinbrain.net/blog/jwt-auth.html https://blog.tinbrain.net/blog/tokens-aint-tokens.html https://blog.tinbrain.net/blog/session-auth-spa.html

https://testdriven.io/blog/django-spa-auth/

https://hasura.io/blog/best-practices-of-using-jwt-with-graphql/

CavalcanteLucas commented 3 years ago

https://djoser.readthedocs.io/en/latest/getting_started.html